mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Fixed bug in vote discarding in notify().
This commit is contained in:
parent
2e19c193a0
commit
b0337f55b5
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue