فهرست منبع

Fixed bug in vote discarding in notify().

default 3 سال پیش
والد
کامیت
b0337f55b5
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      activitypub.c

+ 3 - 1
activitypub.c

@@ -499,7 +499,9 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
             return;
             return;
 
 
         /* discard votes */
         /* discard votes */
-        if (!xs_is_null(xs_dict_get(msg, "name")))
+        const xs_dict *note = xs_dict_get(msg, "object");
+
+        if (note && !xs_is_null(xs_dict_get(note, "name")))
             return;
             return;
     }
     }