commit 9083bef5cb5ab6d36dcba3f80ef736352ad076ac
parent 235c92ea0c7f92f94418fafbaf23bd02652f39c3
Author: default <nobody@localhost>
Date: Mon, 20 Feb 2023 06:12:23 +0100
Don't try to send to empty email addresses.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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
}
}
- if (*email != '[') {
+ if (*email != '\0' && *email != '[') {
snac_debug(snac, 1, xs_fmt("email notify %s %s %s", type, utype, actor));
xs *subject = xs_fmt("snac notify for @%s@%s",