Fix quote posts being treated as replies
- When quotedEvent is present, don't pass event as replyTo in ComposeBox - This ensures quote posts are published as kind 1 with q tags, not replies - Repost (kind 6) was already working correctly Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
@@ -56,7 +56,7 @@ export function ReplyComposeModal({ event, quotedEvent, open, onOpenChange }: Re
|
||||
|
||||
{/* Compose area */}
|
||||
<ComposeBox
|
||||
replyTo={event ?? undefined}
|
||||
replyTo={isQuote ? undefined : (event ?? undefined)}
|
||||
quotedEvent={quotedEvent ?? undefined}
|
||||
onSuccess={() => onOpenChange(false)}
|
||||
placeholder={isReply ? "What's on your mind?" : isQuote ? "Add a comment..." : "What's happening?"}
|
||||
|
||||
Reference in New Issue
Block a user