feat: user signature (设置页编辑 + 帖子底部显示)

- schema: users.signature column (upstream aligned)
- API: posts query JOIN signature, /auth/me returns signature, PUT /users/:id updates signature
- Settings: signature textarea (Markdown hint), saved with profile
- PostDetail: signature shown under post content with divider
- README: remove upstream DB schema note (fixed upstream)
This commit is contained in:
lezi-fun committed 2026-08-10 14:46:05 +08:00
1 parent c8dcf32dd4
commit 694fa2bfaf
6 files changed
+16 -8

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ export async function GET(req) {
}
try {
const r = await pool.query(
'SELECT id, username, avatar_url, bio, role, created_at FROM users WHERE id = $1',
'SELECT id, username, avatar_url, bio, signature, role, created_at FROM users WHERE id = $1',
[user.id]
);
if (!r.rows[0]) {