From 3e006654eaa7582232f697edddbbc5055ba3db80 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Sat, 14 Sep 2024 00:53:04 +0300 Subject: [PATCH] fix: allow empty string content (#69) --- nostr/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nostr/event.py b/nostr/event.py index eab1042..c213d5e 100644 --- a/nostr/event.py +++ b/nostr/event.py @@ -59,7 +59,7 @@ class Event: # 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 )