Quellcode durchsuchen

Fixed notification bug.

default vor 3 Jahren
Ursprung
Commit
344356e488
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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)
     if (xs_type(objid) == XSTYPE_DICT)
         objid = xs_dict_get(objid, "id");
         objid = xs_dict_get(objid, "id");
     else
     else
+    if (objid == NULL)
         objid = id;
         objid = id;
 
 
     if (strcmp(type, "Like") == 0 || strcmp(type, "Announce") == 0) {
     if (strcmp(type, "Like") == 0 || strcmp(type, "Announce") == 0) {