Replace Tags.getCommunity with Tags.communities
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "paravel",
|
||||
"version": "0.4.7",
|
||||
"version": "0.4.8",
|
||||
"description": "Yet another toolkit for nostr",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
|
||||
+1
-1
@@ -222,7 +222,7 @@ export class Tags extends Fluent<string[]> {
|
||||
|
||||
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