commit 22fea17

default  ·  2023-05-29 07:20:25 +0000 UTC
parent 32ce1fb
Disallow voting your own polls.
1 files changed,  +3, -0
M html.c
M html.c
+3, -0
 1@@ -900,6 +900,9 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
 2 
 3             if (xs_dict_get(msg, "closed"))
 4                 closed = 1;
 5+            else
 6+            if (xs_startswith(id, snac->actor))
 7+                closed = 1; /* we questioned? closed for us */
 8             else {
 9                 /* not yet closed? check if we already voted for this */
10                 xs *children = object_children(id);