From 357937b403733d0e6244736de4b14c4cd71e1676 Mon Sep 17 00:00:00 2001 From: Kieran Date: Wed, 11 Jan 2023 11:37:27 +0000 Subject: [PATCH] Dont tag own pubkey in replies --- src/feed/EventPublisher.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/feed/EventPublisher.js b/src/feed/EventPublisher.js index 1254848..27edb67 100644 --- a/src/feed/EventPublisher.js +++ b/src/feed/EventPublisher.js @@ -64,7 +64,6 @@ export default function useEventPublisher() { let thread = replyTo.Thread; if (thread) { - console.debug(replyTo); if (thread.Root) { ev.Tags.push(new Tag(["e", thread.Root.Event, "", "root"], ev.Tags.length)); } else { @@ -73,6 +72,9 @@ export default function useEventPublisher() { ev.Tags.push(new Tag(["e", replyTo.Id, "", "reply"], ev.Tags.length)); ev.Tags.push(new Tag(["p", replyTo.PubKey], ev.Tags.length)); for (let pk of thread.PubKeys) { + if(pk === pubKey) { + continue; // dont tag self in replies + } ev.Tags.push(new Tag(["p", pk], ev.Tags.length)); } } else {