feat: make event kind: 3 replaceable
This commit is contained in:
parent
10ef9ee2ac
commit
5a747361af
5 changed files with 110 additions and 9 deletions
|
|
@ -81,8 +81,10 @@ class NostrClientConnection:
|
|||
resp_nip20: List[Any] = ["OK", e.id]
|
||||
try:
|
||||
e.check_signature()
|
||||
if e.is_meta_event():
|
||||
await delete_events("111", NostrFilter(kinds=[0], authors=[e.pubkey]))
|
||||
if e.is_replaceable_event():
|
||||
await delete_events(
|
||||
"111", NostrFilter(kinds=[e.kind], authors=[e.pubkey])
|
||||
)
|
||||
await create_event("111", e)
|
||||
await self.broadcast_event(self, e)
|
||||
if e.is_delete_event():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue