Replace Tags.getCommunity with Tags.communities
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "paravel",
|
"name": "paravel",
|
||||||
"version": "0.4.7",
|
"version": "0.4.8",
|
||||||
"description": "Yet another toolkit for nostr",
|
"description": "Yet another toolkit for nostr",
|
||||||
"author": "hodlbod",
|
"author": "hodlbod",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
+1
-1
@@ -222,7 +222,7 @@ export class Tags extends Fluent<string[]> {
|
|||||||
|
|
||||||
getRoot = () => this.normalize().mark('root').values().first()
|
getRoot = () => this.normalize().mark('root').values().first()
|
||||||
|
|
||||||
getCommunity = () => this.type("a").values().filter(a => a.startsWith('34550:')).first()
|
communities = () => this.type("a").values().filter(a => a.startsWith('34550:'))
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user