feat: on meta update, replace old meta

This commit is contained in:
Vlad Stan 2023-02-06 11:10:14 +02:00
parent 57197b981d
commit 10ef9ee2ac
5 changed files with 56 additions and 15 deletions

View file

@ -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