댓글 카드 디자인 개선

This commit is contained in:
2026-04-07 13:36:39 +09:00
parent 173f547d8b
commit d5575d3028
8 changed files with 217 additions and 20 deletions

View File

@@ -268,8 +268,10 @@ function mapCommentNotificationRow(row) {
topicSlug: row.topic_slug || row.topic_id,
topicName: row.topic_name || '',
tierListTitle: row.tierlist_title || '',
tierListThumbnailSrc: row.tierlist_thumbnail_src || '',
commentId: row.comment_id,
parentCommentId: row.parent_comment_id || '',
parentCommentContent: row.parent_comment_content || '',
notificationType: row.notification_type || 'tierlist_comment',
isRead: !!row.is_read,
readAt: Number(row.read_at || 0),
@@ -2843,15 +2845,18 @@ async function listCommentNotifications(userId, { unreadOnly = false } = {}) {
n.actor_user_id,
c.parent_comment_id,
c.content AS comment_content,
parent.content AS parent_comment_content,
t.topic_id,
tp.slug AS topic_slug,
tp.name AS topic_name,
t.title AS tierlist_title,
t.thumbnail_src AS tierlist_thumbnail_src,
actor.nickname AS actor_nickname,
actor.email AS actor_email,
actor.avatar_src AS actor_avatar_src
FROM comment_notifications n
INNER JOIN tierlist_comments c ON c.id = n.comment_id
LEFT JOIN tierlist_comments parent ON parent.id = c.parent_comment_id
INNER JOIN tierlists t ON t.id = n.tierlist_id
INNER JOIN topics tp ON tp.id = t.topic_id
INNER JOIN users actor ON actor.id = n.actor_user_id