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
c171efc1ec
commit
581925ad7d
6 files changed
+16
-8
No files matched your search
+2
-2
@@ -78,8 +78,8 @@ export const API = {
|
||||
updateUserRole(userId, role) {
|
||||
return apiFetch('/users/' + userId + '/role', { method: 'PUT', body: JSON.stringify({ role }) });
|
||||
},
|
||||
updateProfile(userId, username, bio) {
|
||||
return apiFetch('/users/' + userId, { method: 'PUT', body: JSON.stringify({ username, bio }) });
|
||||
updateProfile(userId, username, bio, signature) {
|
||||
return apiFetch('/users/' + userId, { method: 'PUT', body: JSON.stringify({ username, bio, signature }) });
|
||||
},
|
||||
updateAvatar(userId, avatar_url) {
|
||||
return apiFetch('/users/' + userId + '/avatar', { method: 'PUT', body: JSON.stringify({ avatar_url }) });
|
||||
|
||||
Reference in new issue
Block a user