Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

feat(follow): 关注条目支持按图隐藏与恢复

longmeidao5c20b08b8545
diff --git a/migrations/0031_follow_hidden_media.sql b/migrations/0031_follow_hidden_media.sql
new file mode 100644
index 000000000..c16a32644
--- /dev/null
+++ b/migrations/0031_follow_hidden_media.sql
@@ -0,0 +1,17 @@
+--
+-- 关注条目的按图隐藏:用户对单张图片说「这不是我要看的内容」。
+--
+-- 为什么要一列而不是塞进 metadata:metadata 整串由连接器在每次检查时重写,
+-- 用户按下去的隐藏状态放进里面,下一轮抓取就会无声消失。它和 `status`、
+-- `asset_id` 是同一类东西——用户的处理结果,抓取流程只读不写,所以进列、
+-- 留在 `record()` 的两条 SET 子句之外。
+--
+-- 存的是媒体稳定键(`id` 优先、`url` 兜底)的 JSON 数组,不是序号:fanbox 的
+-- imageMap id 跨抓取稳定,网盘与附件的 url 指向同一个文件;序号在作者增删
+-- 图片后会错位。NULL 与空数组都表示什么也没隐藏,未隐藏过的行保持 NULL。
+--
+-- 隐藏只影响浏览面:轮播、卡片缩略图与详情侧栏不再显示这张图,ledger 行与
+-- 原始媒体清单完整保留,随时可以撤销。
+--
+
+ALTER TABLE follow_item ADD COLUMN hidden_media_json TEXT;
diff --git a/scripts/vendor_web_dependencies.mjs b/scripts/vendor_web_dependencies.mjs
index 52db8f6e9..4a2310a37 100644
--- a/scripts/vendor_web_dependencies.mjs
+++ b/scripts/vendor_web_dependencies.mjs
@@ -113,6 +113,8 @@ const lucideIcons = new Map([
["table", "table"],
// 关注图片墙「仅显示图片」:划掉字幕,卡片只留图不留文字;不与视频/图片切换那两枚重复。
["captions-off", "captions-off"],
+ // 关注详情的「隐藏这张图」:划掉的是当前这一张,不是整个条目(那是 eye-off)。
+ ["image-off", "image-off"],
// 名字和上游对不上的只有排序键:Peach 叫 `sort`,Lucide 叫 `sort-desc`。
["sort", "sort-desc"], ["arrow-up", "arrow-up"], ["arrow-down", "arrow-down"],
["calendar", "calendar"], ["download", "download"], ["monitor", "monitor"],
diff --git a/src/peach/follow_store.py b/src/peach/follow_store.py
index 081d7ffb3..769fb7778 100644
--- a/src/peach/follow_store.py
+++ b/src/peach/follow_store.py
@@ -206,6 +206,8 @@ class FollowItemRow:
asset_id: int | None
first_seen_at: str
last_seen_at: str
+ #: 用户按图隐藏的媒体稳定键(`id` 优先、`url` 兜底)。抓取流程只读不写。
+ hidden_media: tuple[str, ...] = ()
metadata: dict = field(default_factory=dict)
@@ -565,6 +567,10 @@ class FollowStore:
metadata = json.loads(row["metadata_json"] or "{}")
except (TypeError, ValueError):
metadata = {}
+ try:
+ hidden = json.loads(row["hidden_media_json"] or "[]")
+ except (TypeError, ValueError, IndexError):
+ hidden = []
return FollowItemRow(
id=row["id"], source_id=row["source_id"], provider=row["provider"],
ref=row["ref"], source_label=row["source_label"], entity_id=row["entity_id"],
@@ -577,6 +583,7 @@ class FollowStore:
variant_kind=row["variant_kind"], variant_label=row["variant_label"],
group_hint=row["group_hint"], status=row["status"], asset_id=row["asset_id"],
first_seen_at=row["first_seen_at"], last_seen_at=row["last_seen_at"],
+ hidden_media=tuple(key for key in hidden if isinstance(key, str) and key),
metadata=metadata if isinstance(metadata, dict) else {},
)
@@ -628,6 +635,32 @@ class FollowStore:
self._connect().execute(
"UPDATE follow_item SET status=? WHERE id=?", (status, item_id))
+ def set_media_hidden(self, item_id: int, key: str, hidden: bool) -> tuple[str, ...]:
+ """记录或撤销一张媒体的隐藏,返回这条目当前的隐藏键集。
+
+ 键是媒体的稳定标识(`id` 优先、`url` 兜底),由调用方从 media_items 里
+ 解出来;这里只管集合的增删。集合为空时列写回 NULL,未隐藏过的行保持
+ NULL,不制造一列空 JSON。
+ """
+ row = self._connect().execute(
+ "SELECT hidden_media_json FROM follow_item WHERE id=?", (int(item_id),)
+ ).fetchone()
+ if row is None:
+ raise FollowSourceError(f"追更条目不存在:{item_id}")
+ try:
+ current = [key for key in json.loads(row[0] or "[]")
+ if isinstance(key, str) and key]
+ except ValueError:
+ current = []
+ if hidden and key not in current:
+ current.append(key)
+ if not hidden:
+ current = [item for item in current if item != key]
+ value = json.dumps(current, ensure_ascii=False) if current else None
+ self._connect().execute(
+ "UPDATE follow_item SET hidden_media_json=? WHERE id=?", (value, item_id))
+ return tuple(current)
+
# ---- 作者别名 -------------------------------------------------------
def author_aliases(self) -> tuple[dict[str, str], list[dict]]:
diff --git a/src/peach/web_follow.py b/src/peach/web_follow.py
index 6ab6c4bf7..ffaced5a5 100644
--- a/src/peach/web_follow.py
+++ b/src/peach/web_follow.py
@@ -650,13 +650,27 @@ def _video_media_type(value: object) -> str:
return "video/mp4"
-def _media_items(item) -> list[dict]:
- """给浏览器媒体序号和展示字段;真实上游 URL 仍只留在服务端 metadata。"""
+def _media_key(media: dict) -> str:
+ """一条媒体跨抓取稳定的标识:`id` 优先、`url` 兜底。隐藏状态按它记。"""
+ return str(media.get("id") or media.get("url") or "")
+
+
+def _raw_media_items(item) -> list:
raw = item.metadata.get("media_items")
if not isinstance(raw, list) or not raw:
- raw = f95_attachment_media_items(item.metadata) if item.provider == "f95zone" else []
- result = []
- for index, media in enumerate(raw):
+ return f95_attachment_media_items(item.metadata) if item.provider == "f95zone" else []
+ return raw
+
+
+def _media_projection(item) -> tuple[list[dict], list[dict]]:
+ """把 media_items 投影成浏览器字段,按用户隐藏的键拆成(可见,已隐藏)两份。
+
+ `index` 保持原始清单里的序号不重排:`/follow-stream?media=N` 按同一份原始
+ 清单解析,投影一旦重新编号,点开第 N 张就会拿到另一张。
+ """
+ hidden = frozenset(item.hidden_media or ())
+ visible, concealed = [], []
+ for index, media in enumerate(_raw_media_items(item)):
if not isinstance(media, dict):
continue
if item.provider == "f95zone" and f95_discussion_image(media.get("url") or media.get("thumb_url")):
@@ -665,7 +679,7 @@ def _media_items(item) -> list[dict]:
if kind not in {"video", "image"}:
continue
thumb = str(media.get("thumb_url") or "")
- result.append({
+ projected = {
"index": index,
"name": str(media.get("name") or f"{kind} {index + 1}"),
"media_kind": kind,
@@ -676,8 +690,14 @@ def _media_items(item) -> list[dict]:
"resource_provider": str(media.get("resource_provider") or ""),
"resource_group": str(media.get("resource_group") or "") or None,
"resource_group_label": str(media.get("resource_group_label") or "") or None,
- })
- return result
+ }
+ (concealed if _media_key(media) in hidden else visible).append(projected)
+ return visible, concealed
+
+
+def _media_items(item) -> list[dict]:
+ """给浏览器媒体序号和展示字段;真实上游 URL 仍只留在服务端 metadata。"""
+ return _media_projection(item)[0]
def _thumb_url(item) -> str | None:
@@ -704,7 +724,24 @@ def _thumb_url(item) -> str | None:
return f"/follow-stream?id={item.id}"
if kind == "video":
return f"/follow-cover?id={item.id}"
- return display_thumb_url(item)
+ return _unhide_thumb(item, display_thumb_url(item))
+
+
+def _unhide_thumb(item, thumb: str | None) -> str | None:
+ """缩略图落在被隐藏的媒体上时,改用第一张可见媒体的缩略图。
+
+ 卡片缩略图存的是抓取时的正文首图;用户把那张图藏起来之后,卡面还挂着它
+ 就等于隐藏没生效。
+ """
+ hidden = frozenset(item.hidden_media or ())
+ if not hidden or not thumb:
+ return thumb
+ hidden_thumbs = {str(media.get("thumb_url") or "") for media in _raw_media_items(item)
+ if isinstance(media, dict) and _media_key(media) in hidden}
+ if thumb not in hidden_thumbs:
+ return thumb
+ return next((media["thumb_url"] for media in _media_items(item) if media["thumb_url"]),
+ thumb)
def _f95_has_resource(media_url: str | None, metadata: dict) -> bool:
@@ -752,7 +789,7 @@ def _item_payload(item, credential_providers: frozenset[str] = frozenset()) -> d
tags = _item_tags(item)
detail_tags = _item_all_tags(item)
media_kind = _media_kind(item)
- media_items = _media_items(item)
+ media_items, hidden_media = _media_projection(item)
if media_items:
media_kind = media_items[0]["media_kind"]
elif item.provider == "f95zone" and f95_discussion_image(item.thumb_url):
@@ -812,6 +849,7 @@ def _item_payload(item, credential_providers: frozenset[str] = frozenset()) -> d
# 前者整体锁死;详情继续复用同一条 /follow-stream 媒体代理路径。
"playable": playable,
"media_items": media_items,
+ "hidden_media": hidden_media,
# 只投影连接器已验证过的文件页域名;原始媒体 URL 仍不进入 feed。
"resource_urls": safe_resource_urls,
"tags": tags,
@@ -1620,6 +1658,31 @@ def w_follow_status(contract, body) -> dict:
return result
+def w_follow_media_hide(contract, body) -> dict:
+ """隐藏或恢复一张媒体。
+
+ 界面只报它在投影里看到的 `media` 序号;这里换算成跨抓取稳定的媒体键再落库,
+ 作者中途增删图片也不会让隐藏错位到别的图上。
+ """
+ item_id = int(body["item"])
+ index = int(body["media"])
+ hidden = bool(body.get("hidden", True))
+ with contract.database.write_transaction() as connection:
+ store = _store(contract, connection)
+ item = store.item(item_id)
+ if item is None:
+ raise ValueError(f"no such follow item: {item_id}")
+ raw = _raw_media_items(item)
+ if not 0 <= index < len(raw) or not isinstance(raw[index], dict):
+ raise ValueError(f"media index out of range: {index}")
+ key = _media_key(raw[index])
+ if not key:
+ raise ValueError("this media has no stable identity to hide by")
+ hidden_keys = store.set_media_hidden(item_id, key, hidden)
+ contract.cache_bust()
+ return {"ok": True, "item": item_id, "hidden_media": list(hidden_keys)}
+
+
def w_follow_play(contract, body) -> dict:
"""记录一次关注页直接播放;候选无需先保存成 asset。"""
item_id = int(body["item"])
diff --git a/src/peach/web_router.py b/src/peach/web_router.py
index 7180d62e9..8bc3db38d 100644
--- a/src/peach/web_router.py
+++ b/src/peach/web_router.py
@@ -52,6 +52,7 @@ from .web_follow import (
w_follow_author_alias,
w_follow_check,
w_follow_credential,
+ w_follow_media_hide,
w_follow_play,
w_follow_resolve,
w_follow_save,
@@ -281,6 +282,7 @@ POST_HANDLERS = {
"/api/follow/resolve": w_follow_resolve,
"/api/follow/credential": w_follow_credential,
"/api/follow/status": w_follow_status,
+ "/api/follow/media/hide": w_follow_media_hide,
"/api/follow/save": w_follow_save,
"/api/follow/play": w_follow_play,
"/api/follow/activity": w_follow_activity,
diff --git a/tests/test_follow_web.py b/tests/test_follow_web.py
index 52bf0af04..739f542ce 100644
--- a/tests/test_follow_web.py
+++ b/tests/test_follow_web.py
@@ -591,6 +591,68 @@ class FollowContractTests(unittest.TestCase):
self.assertEqual(items[key]["thumb_url"], f"/follow-cover?id={items[key]['id']}")
self.assertEqual(items["3"]["thumb_url"], image)
+ def test_hidden_media_leaves_the_feed_and_the_card_thumb(self):
+ chart = "https://downloads.fanbox.cc/images/post/1/w/1200/chart.jpeg"
+ art = "https://downloads.fanbox.cc/images/post/1/w/1200/art.jpeg"
+ self._seed(candidates=(FollowCandidate(
+ provider="fanbox", external_id="12565427", title="Poll Results",
+ url="https://lazyprocrast.fanbox.cc/posts/12565427", thumb_url=chart,
+ extra={"media_items": [
+ {"id": "chart", "media_kind": "image", "resource_provider": "fanbox",
+ "url": "https://downloads.fanbox.cc/images/post/1/chart.png",
+ "thumb_url": chart},
+ {"id": "art", "media_kind": "image", "resource_provider": "fanbox",
+ "url": "https://downloads.fanbox.cc/images/post/1/art.png",
+ "thumb_url": art},
+ ]}),), provider="fanbox", ref="lazyprocrast")
+ item = self._get()["groups"][0]["primary"]
+ self.assertEqual(item["thumb_url"], chart)
+
+ result = self._post("/api/follow/media/hide",
+ {"item": item["id"], "media": 0, "hidden": True})
+
+ self.assertEqual(result["hidden_media"], ["chart"])
+ item = self._get()["groups"][0]["primary"]
+ # 序号不重排:剩下的那张仍报它在原始清单里的 1,`/follow-stream?media=1` 才不会错位。
+ self.assertEqual([media["index"] for media in item["media_items"]], [1])
+ self.assertEqual([media["index"] for media in item["hidden_media"]], [0])
+ self.assertEqual(item["thumb_url"], art)
+
+ self._post("/api/follow/media/hide",
+ {"item": item["id"], "media": 0, "hidden": False})
+ item = self._get()["groups"][0]["primary"]
+ self.assertEqual([media["index"] for media in item["media_items"]], [0, 1])
+ self.assertEqual(item["hidden_media"], [])
+ self.assertEqual(item["thumb_url"], chart)
+
+ def test_media_hidden_state_survives_a_refetch(self):
+ candidate = FollowCandidate(
+ provider="fanbox", external_id="12565427", title="Poll Results",
+ url="https://lazyprocrast.fanbox.cc/posts/12565427",
+ extra={"media_items": [
+ {"id": "chart", "media_kind": "image", "resource_provider": "fanbox",
+ "url": "https://downloads.fanbox.cc/images/post/1/chart.png"},
+ {"id": "art", "media_kind": "image", "resource_provider": "fanbox",
+ "url": "https://downloads.fanbox.cc/images/post/1/art.png"},
+ ]})
+ self._seed(candidates=(candidate,), provider="fanbox", ref="lazyprocrast")
+ item = self._get()["groups"][0]["primary"]
+ self._post("/api/follow/media/hide", {"item": item["id"], "media": 0, "hidden": True})
+
+ # 下一轮检查更新把整行重写一遍(完整候选走全量 SET);
+ # 用户按掉的隐藏状态在独立的列里,不在被重写的 metadata 里。
+ self._seed(candidates=(candidate,), provider="fanbox", ref="lazyprocrast")
+
+ item = self._get()["groups"][0]["primary"]
+ self.assertEqual([media["index"] for media in item["media_items"]], [1])
+ self.assertEqual([media["index"] for media in item["hidden_media"]], [0])
+
+ def test_media_hide_rejects_an_out_of_range_index(self):
+ self._seed()
+ item = self._get()["groups"][0]["primary"]
+ with self.assertRaises(ValueError):
+ self._post("/api/follow/media/hide", {"item": item["id"], "media": 9})
+
def test_named_large_collection_is_hidden_but_not_deleted(self):
self._seed(candidates=(FollowCandidate(
provider="rule34video", external_id="4533145", title="Large collection",
diff --git a/tests/test_migrations.py b/tests/test_migrations.py
index c615ef335..78e16c0b3 100644
--- a/tests/test_migrations.py
+++ b/tests/test_migrations.py
@@ -25,7 +25,7 @@ class MigrationTests(unittest.TestCase):
backup = self.root / "before.db"
done = upgrade(self.db, MIGRATIONS, backup)
self.assertEqual([m.version for m in done],
- ["0000", "0001", "0002", "0003", "0004", "0005", "0006", "0007", "0008", "0009", "0010", "0011", "0012", "0013", "0014", "0015", "0016", "0017", "0018", "0019", "0020", "0021", "0022", "0023", "0024", "0025", "0026", "0027", "0028", "0029", "0030"])
+ ["0000", "0001", "0002", "0003", "0004", "0005", "0006", "0007", "0008", "0009", "0010", "0011", "0012", "0013", "0014", "0015", "0016", "0017", "0018", "0019", "0020", "0021", "0022", "0023", "0024", "0025", "0026", "0027", "0028", "0029", "0030", "0031"])
self.assertTrue(backup.exists())
con = sqlite3.connect(self.db)
tables = {row[0] for row in con.execute(
@@ -42,7 +42,7 @@ class MigrationTests(unittest.TestCase):
"playlist", "playlist_item",
"asset_tag_preference", "asset_search", "follow_playback",
"genre_decision", "asset_subtitle", "task_run", "schema_migration"} <= tables)
- self.assertEqual(versions, ["0000", "0001", "0002", "0003", "0004", "0005", "0006", "0007", "0008", "0009", "0010", "0011", "0012", "0013", "0014", "0015", "0016", "0017", "0018", "0019", "0020", "0021", "0022", "0023", "0024", "0025", "0026", "0027", "0028", "0029", "0030"])
+ self.assertEqual(versions, ["0000", "0001", "0002", "0003", "0004", "0005", "0006", "0007", "0008", "0009", "0010", "0011", "0012", "0013", "0014", "0015", "0016", "0017", "0018", "0019", "0020", "0021", "0022", "0023", "0024", "0025", "0026", "0027", "0028", "0029", "0030", "0031"])
self.assertEqual(upgrade(self.db, MIGRATIONS), [])
self.assertEqual(plan(self.db, MIGRATIONS)[1], [])
diff --git a/tests/test_rm_web.py b/tests/test_rm_web.py
index 10761341a..9f6986210 100644
--- a/tests/test_rm_web.py
+++ b/tests/test_rm_web.py
@@ -914,7 +914,8 @@ class WebDataTests(unittest.TestCase):
"/api/purge-missing", "/api/review/auto-apply",
"/api/links/check", "/api/links/prune",
"/api/resource-sync/scan", "/api/resource-sync/apply",
- "/api/follow/check", "/api/follow/status", "/api/follow/save",
+ "/api/follow/check", "/api/follow/status", "/api/follow/media/hide",
+ "/api/follow/save",
"/api/follow/play", "/api/follow/activity",
"/api/follow/source", "/api/follow/resolve", "/api/follow/credential",
"/api/follow/author-alias", "/api/follow/schedule",
diff --git a/web/app.js b/web/app.js
index 4462ec0d7..394ad0b80 100644
--- a/web/app.js
+++ b/web/app.js
@@ -5712,6 +5712,11 @@ async function openFollowDetail(id,push=true,mediaIndex=null,preserveReturn=fals
const author=followAuthorName(authorSources)||item.author||item.source_label||'创作者未取得';
const postedBy=item.author&&foldName(item.author)!==foldName(author)?item.author:'';
const mediaIssue=followMediaIssue(item);
+ // 被隐藏的图退到这条恢复带上:缩略图加一枚撤销键,点了就回到轮播。
+ // 不占媒体队列,也不进角标数——它们已经是「不在看」的那部分。
+ const hiddenStrip=(item.hidden_media||[]).length?`<div class="followhiddenmedia">
+ <span class="followhiddenlabel">已隐藏 ${item.hidden_media.length} 张</span>
+ <div class="followhiddenthumbs">${item.hidden_media.map(media=>`<button data-follow-media-restore="${media.index}" title="恢复显示 ${esc(media.name||'')}" aria-label="恢复显示 ${esc(media.name||'')}">${media.thumb_url?`<img src="${esc(media.thumb_url)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">`:icon('image-off')}<i>${icon('rotate-ccw')}</i></button>`).join('')}</div></div>`:'';
placeItemDetail(detailOriginAnchor,detailOriginAbove);
$('#stage').hidden=false;document.body.classList.add('detail-open');
$('#stage').innerHTML=`<div class="sgrid followdetailgrid${collection||embeddedQueue?' mixgrid':''}">
@@ -5730,8 +5735,10 @@ async function openFollowDetail(id,push=true,mediaIndex=null,preserveReturn=fals
<button class="seen" data-follow-detail-status="seen" aria-label="标记已看" title="标记已看" aria-pressed="${item.status==='seen'}">${icon('eye')}</button>
<button class="dislike" data-follow-detail-status="ignored" aria-label="忽略" title="忽略" aria-pressed="${item.status==='ignored'}">${icon('eye-off')}</button>
${item.status==='seen'||item.status==='ignored'?`<button data-follow-detail-status="new" aria-label="恢复未看" title="恢复未看">${icon('rotate-ccw')}</button>`:''}
+ ${selectedKind==='image'&&selectedMedia?`<button class="dislike" data-follow-media-hide="${selectedMedia.index}" aria-label="隐藏这张图" title="隐藏这张图">${icon('image-off')}</button>`:''}
${src?`<a class="fdownload" href="${esc(src)}${src.includes('?')?'&':'?'}download=1" download
aria-label="下载到本地" title="下载到本地">${icon('download')}</a>`:''}</div>
+ ${hiddenStrip}
<span class="fstate" aria-live="polite"></span>
${tags?`<div class="stags followdetailtags">${tags}</div>`:''}
</div></div></div>`;
@@ -5828,6 +5835,24 @@ async function openFollowDetail(id,push=true,mediaIndex=null,preserveReturn=fals
control.setAttribute('aria-pressed',String(control.dataset.followDetailStatus===before)));
}:null});
});
+ /* 隐藏与恢复都换掉整份媒体清单,重开详情是最短的同步路径:条目从索引里摘掉,
+ 下一次读取走单条查询,服务端投影自然给出新的可见集合与缩略图。 */
+ const reopenAfterMediaChange=async mediaIndex=>{
+ followItemsById.delete(item.id);
+ await openFollowDetail(item.id,false,mediaIndex,true);
+ };
+ $('#stage').querySelectorAll('[data-follow-media-hide]').forEach(button=>button.onclick=()=>{
+ const index=+button.dataset.followMediaHide;
+ const rest=(item.media_items||[]).filter(media=>media.index!==index);
+ const next=rest.find(media=>media.media_kind==='image');
+ write(button,'/api/follow/media/hide',{item:item.id,media:index,hidden:true},()=>{
+ reopenAfterMediaChange(next?next.index:null)},{message:'已隐藏这张图'});
+ });
+ $('#stage').querySelectorAll('[data-follow-media-restore]').forEach(button=>button.onclick=()=>{
+ const index=+button.dataset.followMediaRestore;
+ write(button,'/api/follow/media/hide',{item:item.id,media:index,hidden:false},()=>{
+ reopenAfterMediaChange(index)},{message:'已恢复显示'});
+ });
alignFollowImageControls();
// 滚到舞台本身,不是页面头部——就近展开的意义就在于视线不被拽走。
// 复用首页那套 sticky 偏移,标题不会被吸顶的筛选条盖住。
diff --git a/web/css/21-online.css b/web/css/21-online.css
index c364d4fb2..84e05ac12 100644
--- a/web/css/21-online.css
+++ b/web/css/21-online.css
@@ -97,6 +97,9 @@
/* 标签沉到侧栏最后:来源站的标签动辄几十个,夹在正文和操作之间就得先滚过整片
标签云才够得着「已看/忽略」。 */
.followdetailside .followdetailtags{margin:16px 0 0}.followdetailactions button:disabled{opacity:.45;cursor:not-allowed}.followorigin{width:max-content;margin-top:auto;color:var(--muted);text-decoration:none}.followorigin:hover{color:var(--ink);text-decoration:none}
+/* 被隐藏的图退到这条恢复带:一行小缩略图,各带一枚撤销角标。整带保持安静
+ (灰调、小尺寸),它们是「不在看」的那部分,不能和正片抢视线。 */
+.followhiddenmedia{display:flex;align-items:center;gap:10px;margin-top:14px}.followhiddenlabel{color:var(--muted);white-space:nowrap}.followhiddenthumbs{display:flex;flex-wrap:wrap;gap:6px}.followhiddenthumbs button{position:relative;width:40px;height:40px;padding:0;border:1px solid var(--border-15);border-radius:var(--control-radius);background:none;cursor:pointer;overflow:hidden}.followhiddenthumbs button:hover{border-color:var(--ink-3)}.followhiddenthumbs img{width:100%;height:100%;object-fit:cover;display:block;opacity:.55}.followhiddenthumbs i{position:absolute;right:2px;bottom:2px;display:flex;width:16px;height:16px;align-items:center;justify-content:center;border-radius:50%;background:var(--hover);color:var(--ink-2)}.followhiddenthumbs svg{width:11px;height:11px;stroke:currentColor;fill:none}
@media (max-width:640px){.followhead{align-items:center}
.followauthors{margin-right:-12px;padding-top:3px}
.followlist.followphotowall{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px}
diff --git a/web/index.html b/web/index.html
index 9cc1e0340..4cac633c9 100644
--- a/web/index.html
+++ b/web/index.html
@@ -54,6 +54,7 @@
<symbol id="i-cigarette" viewBox="0 0 24 24"><path d="M17 12H3a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h14" /><path d="M18 8c0-2.5-2-2.5-2-5" /><path d="M21 16a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1" /><path d="M22 8c0-2.5-2-2.5-2-5" /><path d="M7 12v4" /></symbol>
<symbol id="i-film" viewBox="0 0 24 24"><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M7 3v18" /><path d="M3 7.5h4" /><path d="M3 12h18" /><path d="M3 16.5h4" /><path d="M17 3v18" /><path d="M17 7.5h4" /><path d="M17 16.5h4" /></symbol>
<symbol id="i-image" viewBox="0 0 24 24"><rect width="18" height="18" x="3" y="3" rx="2" ry="2" /><circle cx="9" cy="9" r="2" /><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" /></symbol>
+<symbol id="i-image-off" viewBox="0 0 24 24"><line x1="2" x2="22" y1="2" y2="22" /><path d="M10.41 10.41a2 2 0 1 1-2.83-2.83" /><line x1="13.5" x2="6" y1="13.5" y2="21" /><line x1="18" x2="21" y1="12" y2="15" /><path d="M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59" /><path d="M21 15V5a2 2 0 0 0-2-2H9" /></symbol>
<symbol id="i-gamepad-2" viewBox="0 0 24 24"><line x1="6" x2="10" y1="11" y2="11" /><line x1="8" x2="8" y1="9" y2="13" /><line x1="15" x2="15.01" y1="12" y2="12" /><line x1="18" x2="18.01" y1="10" y2="10" /><path d="M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z" /></symbol>
<symbol id="i-flame" viewBox="0 0 24 24"><path d="M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4" /></symbol>
<symbol id="i-cherry" viewBox="0 0 24 24"><path d="M2 17a5 5 0 0 0 10 0c0-2.76-2.5-5-5-3-2.5-2-5 .24-5 3Z" /><path d="M12 17a5 5 0 0 0 10 0c0-2.76-2.5-5-5-3-2.5-2-5 .24-5 3Z" /><path d="M7 14c3.22-2.91 4.29-8.75 5-12 1.66 2.38 4.94 9 5 12" /><path d="M22 9c-4.29 0-7.14-2.33-10-7 5.71 0 10 4.67 10 7Z" /></symbol>