fix: replyToThis bug
This commit is contained in:
parent
7174ed2502
commit
a2d084ab70
@ -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",
|
||||
|
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user