feat: on meta update, replace old meta
This commit is contained in:
parent
57197b981d
commit
10ef9ee2ac
5 changed files with 56 additions and 15 deletions
|
|
@ -59,6 +59,9 @@ class NostrEvent(BaseModel):
|
|||
id = hashlib.sha256(data.encode()).hexdigest()
|
||||
return id
|
||||
|
||||
def is_meta_event(self) -> bool:
|
||||
return self.kind == 0
|
||||
|
||||
def is_delete_event(self) -> bool:
|
||||
return self.kind == 5
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue