Parcourir la source

Also accept Article objects.

default il y a 2 ans
Parent
commit
bb28b1c090
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      activitypub.c

+ 1 - 1
activitypub.c

@@ -1912,7 +1912,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
             return 1;
             return 1;
         }
         }
 
 
-        if (strcmp(utype, "Note") == 0) { /** **/
+        if (xs_match(utype, "Note|Article")) { /** **/
             char *id          = xs_dict_get(object, "id");
             char *id          = xs_dict_get(object, "id");
             char *in_reply_to = xs_dict_get(object, "inReplyTo");
             char *in_reply_to = xs_dict_get(object, "inReplyTo");
             xs *wrk           = NULL;
             xs *wrk           = NULL;