Fix quotes being mis-labeled as replies

This commit is contained in:
Jon Staab
2024-03-08 15:05:29 -08:00
parent 3e27746617
commit 5a94bfd235
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "paravel",
"version": "0.5.2",
"version": "0.5.3",
"description": "Yet another toolkit for nostr",
"author": "hodlbod",
"license": "MIT",
+3 -1
View File
@@ -91,7 +91,9 @@ export class Tags extends (Fluent<Tag> as OmitStatics<typeof Fluent<Tag>, 'from'
tags
.forEach((t: Tag, i: number) => {
if (t.mark() === 'root') {
if (t.key() === "q") {
mentions.push(t.valueOf())
} else if (t.mark() === 'root') {
roots.push(t.valueOf())
} else if (t.mark() === 'reply') {
replies.push(t.valueOf())