default 3 лет назад
Родитель
Сommit
af88b78478
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      activitypub.c

+ 1 - 1
activitypub.c

@@ -519,7 +519,7 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
     }
 
     /* updated poll? */
-    if (strcmp(type, "Update") == 0 && strcmp(type, "Question") == 0) {
+    if (strcmp(type, "Update") == 0 && strcmp(utype, "Question") == 0) {
         /* if it's not closed, discard */
         if (xs_is_null(xs_dict_get(msg, "closed")))
             return;