From 85e9a8717440eb0f27102125a92c01ed2d8469b5 Mon Sep 17 00:00:00 2001 From: Danny Morabito Date: Sun, 6 Apr 2025 00:41:17 +0200 Subject: [PATCH] last minute fix, accidental typo that broke sending emails --- smtpServer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/smtpServer.ts b/smtpServer.ts index 3fc083e..d28971d 100644 --- a/smtpServer.ts +++ b/smtpServer.ts @@ -202,11 +202,11 @@ async function publishNostrEvent(session: SmtpSession): Promise { }, }); }); - tags.push([ + tags.push( ...nostrEvent.tags.filter((tag) => tag[0] === "p" || tag[0] === "e" || tag[0] === "E" ), - ]); + ); tags.push(["e", nostrEvent.id]); } @@ -246,7 +246,7 @@ async function publishNostrEvent(session: SmtpSession): Promise { }; const event = finalizeEvent( - unsignedEvent as EventTemplate, + unsignedEvent, session.privateKey, );