summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2023-05-31 22:12:44 +0200
committerGravatar default2023-05-31 22:12:44 +0200
commit91ed98df0dd80b84f8800873a01c4881748807cf (patch)
treead6fde4119b74ad5c782715eca09eb974f828aba /activitypub.c
parentDon't notify about closed polls that we didn't vote for. (diff)
downloadsnac2-91ed98df0dd80b84f8800873a01c4881748807cf.tar.gz
snac2-91ed98df0dd80b84f8800873a01c4881748807cf.tar.xz
snac2-91ed98df0dd80b84f8800873a01c4881748807cf.zip
Always notify about our own closed polls.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index 4d873e7..f53f442 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -520,9 +520,9 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
520 return; 520 return;
521 } 521 }
522 522
523 /* if it's a closed poll but we didn't vote, drop it */ 523 /* if it's a closed poll that is not ours and we didn't vote, drop it */
524 if (strcmp(type, "Update") == 0 && strcmp(type, "Question") == 0) { 524 if (strcmp(type, "Update") == 0 && strcmp(type, "Question") == 0) {
525 if (!was_question_voted(snac, id)) 525 if (!xs_startswith(id, snac->actor) && !was_question_voted(snac, id))
526 return; 526 return;
527 } 527 }
528 528