From 6dcf139989922392fe37216e025a1ae4a22b1e0e Mon Sep 17 00:00:00 2001 From: en Date: Thu, 27 Feb 2025 14:53:59 +0100 Subject: [PATCH] fix(popup): hide q reposts in replies, show them only in quote-repost selection --- src/components/comment/CommentsPopup.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/comment/CommentsPopup.tsx b/src/components/comment/CommentsPopup.tsx index f155146..5aa56a8 100644 --- a/src/components/comment/CommentsPopup.tsx +++ b/src/components/comment/CommentsPopup.tsx @@ -532,9 +532,12 @@ export const CommentsPopup = ({ title }: CommentsPopupProps) => { comment={{ event: reply }} /> )) - : commentEvents.map((reply) => ( - - ))} + : commentEvents + // Filter out events with 'q' tag since we are showing them with a dropdown + .filter((r) => r.event.tagValue('q') !== event.id) + .map((reply) => ( + + ))} )}