Fixed bug in vote discarding in notify().

This commit is contained in:
default 2023-06-02 10:52:05 +02:00
parent 2e19c193a0
commit b0337f55b5

View File

@ -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;
} }