summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-02-20 06:12:23 +0100
committerGravatar default2023-02-20 06:12:23 +0100
commit9083bef5cb5ab6d36dcba3f80ef736352ad076ac (patch)
treecac4d0960c56c3c52c04de4f9ea35dcd7867c481
parentUpdated documentation. (diff)
downloadsnac2-9083bef5cb5ab6d36dcba3f80ef736352ad076ac.tar.gz
snac2-9083bef5cb5ab6d36dcba3f80ef736352ad076ac.tar.xz
snac2-9083bef5cb5ab6d36dcba3f80ef736352ad076ac.zip
Don't try to send to empty email addresses.
-rw-r--r--activitypub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index 4db08ab..fc01466 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -850,7 +850,7 @@ void notify(snac *snac, xs_str *type, xs_str *utype, xs_str *actor, xs_dict *msg
850 } 850 }
851 } 851 }
852 852
853 if (*email != '[') { 853 if (*email != '\0' && *email != '[') {
854 snac_debug(snac, 1, xs_fmt("email notify %s %s %s", type, utype, actor)); 854 snac_debug(snac, 1, xs_fmt("email notify %s %s %s", type, utype, actor));
855 855
856 xs *subject = xs_fmt("snac notify for @%s@%s", 856 xs *subject = xs_fmt("snac notify for @%s@%s",