diff --git a/packages/system/package.json b/packages/system/package.json index 937366c5..84c83774 100644 --- a/packages/system/package.json +++ b/packages/system/package.json @@ -1,6 +1,6 @@ { "name": "@snort/system", - "version": "1.1.2", + "version": "1.1.3", "description": "Snort nostr system package", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/system/src/nostr-link.ts b/packages/system/src/nostr-link.ts index e39a9b5a..ee47ad26 100644 --- a/packages/system/src/nostr-link.ts +++ b/packages/system/src/nostr-link.ts @@ -82,7 +82,7 @@ export class NostrLink implements ToNostrEventTag { isReplyToThis(ev: NostrEvent) { const NonNip10Kinds = [EventKind.Reaction, EventKind.Repost, EventKind.ZapReceipt]; if (NonNip10Kinds.includes(ev.kind)) { - const lastRef = ev.tags.findLast(a => a[0] === "e" || a[1] === "a"); + const lastRef = ev.tags.findLast(a => a[0] === "e" || a[0] === "a"); if (!lastRef) return false; if (