Show independent note descriptions, tags and image counts without author chrome
wiki CI and deployment / verify-and-deploy (push) Has been cancelled

This commit is contained in:
2026-10-25 23:44:55 +08:00
parent 5f1af4e9f6
commit b4f4facea0
16 changed files with 85 additions and 20 deletions
+6
View File
@@ -0,0 +1,6 @@
ALTER TABLE posts ADD COLUMN IF NOT EXISTS description text NOT NULL DEFAULT '';
UPDATE posts p SET description=left(COALESCE((
SELECT a.body FROM post_assets pa JOIN assets a ON a.id=pa.asset_id
WHERE pa.post_id=p.id AND a.kind='text' AND a.body IS NOT NULL
ORDER BY pa.position LIMIT 1
),p.title),200) WHERE p.description='';