This commit is contained in:
2023-09-19 10:01:13 +01:00
parent 04239123bb
commit 4b2161369d
12 changed files with 42 additions and 65 deletions

View File

@ -233,7 +233,7 @@ export class RequestFilterBuilder {
* Get event from link
*/
link(link: NostrLink) {
if(link.type === NostrPrefix.Address) {
if (link.type === NostrPrefix.Address) {
return this.tag("d", [link.id])
.kinds([unwrap(link.kind)])
.authors([unwrap(link.author)]);
@ -246,7 +246,7 @@ export class RequestFilterBuilder {
* Get replies to link with e/a tags
*/
replyToLink(link: NostrLink) {
if(link.type === NostrPrefix.Address) {
if (link.type === NostrPrefix.Address) {
return this.tag("a", [`${link.kind}:${link.author}:${link.id}`]);
} else {
return this.tag("e", [link.id]);