Skip to content

Commit

Permalink
fix: allow empty string content (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
motorina0 authored Sep 13, 2024
1 parent 98ff395 commit 3e00665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nostr/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def id(self) -> str:
# Always recompute the id to reflect the up-to-date state of the Event
assert self.public_key, "Event public key is missing"
assert self.created_at, "Event created_at is missing"
assert self.content, "Event content is missing"
assert self.content is not None, "Event content is missing"
return Event.compute_id(
self.public_key, self.created_at, self.kind, self.tags, self.content
)
Expand Down

0 comments on commit 3e00665

Please sign in to comment.