summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index 4919a61..c28e52f 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -499,7 +499,9 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
499 return; 499 return;
500 500
501 /* discard votes */ 501 /* discard votes */
502 if (!xs_is_null(xs_dict_get(msg, "name"))) 502 const xs_dict *note = xs_dict_get(msg, "object");
503
504 if (note && !xs_is_null(xs_dict_get(note, "name")))
503 return; 505 return;
504 } 506 }
505 507