commit b0337f55b5c0afe32231f1efffe7aa184319b7e3
parent 2e19c193a09c57f4e3f6d65b3909fbb42cc12a63
Author: default <nobody@localhost>
Date: Fri, 2 Jun 2023 10:52:05 +0200
Fixed bug in vote discarding in notify().
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/activitypub.c b/activitypub.c
@@ -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;
}