This commit is contained in:
2026-08-19 21:51:41 +02:00
parent 63ea313742
commit 0b2ece9447
9 changed files with 153 additions and 14 deletions

View File

@@ -7436,6 +7436,9 @@ class NotificationSystem {
} else if (data.type === 'comments') {
window.f0ckDebug(`[SSE] Comment update received:`, data.data);
if (data.data.type === 'comment') {
if (window.commentSystem && typeof window.commentSystem.handleLiveComment === 'function') {
window.commentSystem.handleLiveComment(data.data);
}
// New comment posted — update xD badge from server-authoritative score
if (typeof data.data.xd_score === 'number') {
updateXdBadgeFromScore(data.data.item_id, data.data.xd_score);