Просмотр исходного кода

Don't generate inReplyTo as an empty string.

default 3 лет назад
Родитель
Сommit
a24b27bf29
1 измененных файлов с 1 добавлено и 1 удалено
  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 */