fix: 空评论列表 500,并完善撤回审计与角色说明

空切片 JSON 统一为数组;撤回保留正文供站长阅读,成员侧居中提示与重新编辑;头像支持拖放;角色弹窗补全职责说明并汇入封禁。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-16 00:23:55 +08:00
parent 42c395a864
commit 8c5de13899
29 changed files with 835 additions and 405 deletions

View File

@@ -652,8 +652,9 @@ func (s *AdminUserService) ListAuditMessages(actor *Actor, userID uint, page, si
}
content := m.Content
recalled := m.RecalledAt != nil
// 历史数据:早期撤回曾清空正文,无法还原
if recalled && content == "" {
content = "(已撤回的消息)"
content = "(撤回时未保留正文)"
}
it := AdminAuditMessageItem{
ID: m.ID,