Add stricter check for legacy tags
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "paravel",
|
"name": "paravel",
|
||||||
"version": "0.4.2",
|
"version": "0.4.3",
|
||||||
"description": "Yet another toolkit for nostr",
|
"description": "Yet another toolkit for nostr",
|
||||||
"author": "hodlbod",
|
"author": "hodlbod",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
+1
-1
@@ -183,7 +183,7 @@ export class Tags extends Fluent<string[]> {
|
|||||||
const tags = this.type(["a", "e"])
|
const tags = this.type(["a", "e"])
|
||||||
|
|
||||||
// If we have a mark, we're not using the legacy format
|
// 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
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user