summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index 066a49d..dddeb20 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -519,7 +519,7 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
}
/* updated poll? */
- if (strcmp(type, "Update") == 0 && strcmp(type, "Question") == 0) {
+ if (strcmp(type, "Update") == 0 && strcmp(utype, "Question") == 0) {
/* if it's not closed, discard */
if (xs_is_null(xs_dict_get(msg, "closed")))
return;