mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
Fixed bug in vote discarding in notify().
This commit is contained in:
parent
2e19c193a0
commit
b0337f55b5
@ -499,7 +499,9 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
|
||||
return;
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user