feat(comment): add emoji reaction support for comments (#405)

* feat(comment): add emoji reaction support for comments

* fix(webui): adjust emoji picker trigger icon size to match mark-done icon

* fix(webui): prevent search icon and placeholder overlap in emoji picker

* fix(webui): use normal text color for reaction count

* feat(db): limit comment reaction code column to VarChar(32)
This commit is contained in:
Yiling-J
2026-09-14 15:01:36 +08:00
committed by GitHub
parent ede52e5009
commit def42cd000
29 changed files with 3084 additions and 41 deletions
+8 -1
View File
@@ -282,7 +282,14 @@ const route = app
await shareService.verifyPublicAccess(fileId, password)
const targetFileId = await assetService.resolveTargetAssetId(fileId)
const res = await assetService.listComments(targetFileId, req)
let userId: string | undefined
const session = await auth.api.getSession({
headers: c.req.raw.headers,
})
if (session?.user) {
userId = session.user.id
}
const res = await assetService.listComments(targetFileId, req, userId)
return c.json(res)
} catch (err) {
return handlePublicShareError(c, err)