Procházet zdrojové kódy

Fixed typo in notify().

default před 3 roky
rodič
revize
af88b78478
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;