snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 91ed98df0dd80b84f8800873a01c4881748807cf
parent c55a2e4d136995eb538ae1675d6478e4c3028e12
Author: default <nobody@localhost>
Date:   Wed, 31 May 2023 22:12:44 +0200

Always notify about our own closed polls.

Diffstat:
Mactivitypub.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/activitypub.c b/activitypub.c @@ -520,9 +520,9 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor, return; } - /* if it's a closed poll but we didn't vote, drop it */ + /* if it's a closed poll that is not ours and we didn't vote, drop it */ if (strcmp(type, "Update") == 0 && strcmp(type, "Question") == 0) { - if (!was_question_voted(snac, id)) + if (!xs_startswith(id, snac->actor) && !was_question_voted(snac, id)) return; }