fix(popup): hide q reposts in replies, show them only in quote-repost selection

This commit is contained in:
en 2025-02-27 14:53:59 +01:00
parent 78e679b7b0
commit 6dcf139989

View File

@ -532,9 +532,12 @@ export const CommentsPopup = ({ title }: CommentsPopupProps) => {
comment={{ event: reply }}
/>
))
: commentEvents.map((reply) => (
<Comment key={reply.event.id} comment={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) => (
<Comment key={reply.event.id} comment={reply} />
))}
</div>
)}
</>