diff --git a/src/components/Reposts.tsx b/src/components/Reposts.tsx index 7c71ad49..738e84c7 100644 --- a/src/components/Reposts.tsx +++ b/src/components/Reposts.tsx @@ -25,13 +25,14 @@ export default function Reposts({ event, reposts }) { const relay = seenOn.at(0); const tag = relay ? [...ref, relay] : ref; const p = ["p", event.pubkey]; + const k = ["k", String(event.kind)]; try { const ev = { kind: REPOST, created_at: dateToUnix(), - tags: [tag, p, ...evTags], - content: JSON.stringify(rawEvent), + tags: [tag, p, k], + content: "", }; const signed = new NDKEvent(ndk, ev); await signed.sign(); diff --git a/src/const.ts b/src/const.ts index c4e43ba3..c4cdde1d 100644 --- a/src/const.ts +++ b/src/const.ts @@ -1,7 +1,7 @@ // Nostr export const NOTE = 1; export const CONTACTS = 3; -export const REPOST = 6; +export const REPOST = 16; export const REACTION = 7; export const ZAP = 9735; export const ZAP_REQUEST = 9734;