Selaa lähdekoodia

Fixed notification bug.

default 3 vuotta sitten
vanhempi
sitoutus
344356e488
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      activitypub.c

+ 1 - 0
activitypub.c

@@ -512,6 +512,7 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
     if (xs_type(objid) == XSTYPE_DICT)
         objid = xs_dict_get(objid, "id");
     else
+    if (objid == NULL)
         objid = id;
 
     if (strcmp(type, "Like") == 0 || strcmp(type, "Announce") == 0) {