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:
1 parent
c8dcf32dd4
commit
694fa2bfaf
6 files changed
+16
-8
No files matched your search
@@ -140,6 +140,11 @@ export default function PostDetail({ postId }) {
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
{post.signature && (
|
||||
<div style={{ marginTop: 16, paddingTop: 12, borderTop: '1px solid var(--border-light)', fontSize: 12, color: 'var(--text-secondary)' }}>
|
||||
{post.signature}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<ReplyList postId={postId} onRefresh={load} />
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user