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, );