From de186dfd7bdafddb4a5b5d73cde8704bfe949272 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Mon, 13 Nov 2023 13:30:43 -0800 Subject: [PATCH] Fix mis-identification of legacy tags for mentions --- package.json | 2 +- src/util/nostr.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cb9e4f5..778d8aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "paravel", - "version": "0.4.4", + "version": "0.4.5", "description": "Yet another toolkit for nostr", "author": "hodlbod", "license": "MIT", diff --git a/src/util/nostr.ts b/src/util/nostr.ts index 453e696..7039f30 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 => t.length === 4 && ["reply", "root"].includes(last(t)))) { + if (tags.any(t => t.length === 4 && ["reply", "root", "mention"].includes(last(t)))) { return this }