From b23d69ff16fe74795c93fa82ceaf02f3f5b20f43 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Fri, 10 Nov 2023 22:57:56 -0800 Subject: [PATCH] Add stricter check for legacy tags --- package.json | 2 +- src/util/nostr.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bd43a0e..f5d2c5b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "paravel", - "version": "0.4.2", + "version": "0.4.3", "description": "Yet another toolkit for nostr", "author": "hodlbod", "license": "MIT", diff --git a/src/util/nostr.ts b/src/util/nostr.ts index 00aefc0..692cab9 100644 --- a/src/util/nostr.ts +++ b/src/util/nostr.ts @@ -183,7 +183,7 @@ export class Tags extends Fluent { const tags = this.type(["a", "e"]) // If we have a mark, we're not using the legacy format - if (tags.any(t => ["reply", "root"].includes(last(t)))) { + if (tags.any(t => t.length === 4 && ["reply", "root"].includes(last(t)))) { return this }