feat: client tags
This commit is contained in:
@ -150,7 +150,11 @@ export class NostrLink implements ToNostrEventTag {
|
||||
const ifSetCheck = <T>(a: T | undefined, b: T) => {
|
||||
return !Boolean(a) || a === b;
|
||||
};
|
||||
return (EventExt.isReplaceable(ev.kind) || ifSetCheck(this.id, ev.id)) && ifSetCheck(this.author, ev.pubkey) && ifSetCheck(this.kind, ev.kind);
|
||||
return (
|
||||
(EventExt.isReplaceable(ev.kind) || ifSetCheck(this.id, ev.id)) &&
|
||||
ifSetCheck(this.author, ev.pubkey) &&
|
||||
ifSetCheck(this.kind, ev.kind)
|
||||
);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user