Forráskód Böngészése

Don't try to send to empty email addresses.

default 3 éve
szülő
commit
9083bef5cb
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      activitypub.c

+ 1 - 1
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",