commit 91ed98d

default  ·  2023-05-31 20:12:44 +0000 UTC
parent c55a2e4
Always notify about our own closed polls.
1 files changed,  +2, -2
+2, -2
 1@@ -520,9 +520,9 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
 2             return;
 3     }
 4 
 5-    /* if it's a closed poll but we didn't vote, drop it */
 6+    /* if it's a closed poll that is not ours and we didn't vote, drop it */
 7     if (strcmp(type, "Update") == 0 && strcmp(type, "Question") == 0) {
 8-        if (!was_question_voted(snac, id))
 9+        if (!xs_startswith(id, snac->actor) && !was_question_voted(snac, id))
10             return;
11     }
12