From 624eff12ea4170c706d1d4cd4d3ba66b17827092 Mon Sep 17 00:00:00 2001 From: Patrick Mulligan Date: Thu, 1 Jan 2026 20:25:35 +0100 Subject: [PATCH] feat(nostr-feed): Add comment voting with persistence MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add fetchCommentReactions() to load reactions for all comments after EOSE - Add updateCommentVotes() to refresh comment votes from ReactionService - Add dislikeEvent() and undislikeEvent() to ReactionService for downvotes - Update downvoteComment() to use ReactionService for persistence - Fix vote button styling in SubmissionComment to properly show active state - Wire up comment vote handlers in SubmissionDetail 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../components/SubmissionComment.vue | 16 +- .../components/SubmissionDetail.vue | 21 +++ .../nostr-feed/services/ReactionService.ts | 118 ++++++++++++++ .../nostr-feed/services/SubmissionService.ts | 144 +++++++++++++++++- 4 files changed, 294 insertions(+), 5 deletions(-) diff --git a/src/modules/nostr-feed/components/SubmissionComment.vue b/src/modules/nostr-feed/components/SubmissionComment.vue index 1dc820f..9a3ea90 100644 --- a/src/modules/nostr-feed/components/SubmissionComment.vue +++ b/src/modules/nostr-feed/components/SubmissionComment.vue @@ -141,16 +141,24 @@ const isOwnComment = computed(() =>