Explorar o código

Don't generate inReplyTo as an empty string.

default %!s(int64=3) %!d(string=hai) anos
pai
achega
a24b27bf29
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      activitypub.c

+ 1 - 1
activitypub.c

@@ -599,7 +599,7 @@ d_char *msg_note(snac *snac, char *content, char *rcpts, char *in_reply_to, char
     if (tag == NULL)
         tag = xs_list_new();
 
-    if (in_reply_to != NULL) {
+    if (in_reply_to != NULL && *in_reply_to) {
         xs *p_msg = NULL;
 
         /* demand this thing */