commit b0337f5
default
·
2023-06-02 08:52:05 +0000 UTC
parent 2e19c19
Fixed bug in vote discarding in notify().
1 files changed,
+3,
-1
+3,
-1
1@@ -499,7 +499,9 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
2 return;
3
4 /* discard votes */
5- if (!xs_is_null(xs_dict_get(msg, "name")))
6+ const xs_dict *note = xs_dict_get(msg, "object");
7+
8+ if (note && !xs_is_null(xs_dict_get(note, "name")))
9 return;
10 }
11