summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-29 09:20:25 +0200
committerdefault <nobody@localhost>2023-05-29 09:20:25 +0200
commit22fea1725536a51672c6d0ef5b26abc62ba4a1b2 (patch)
treea58d25831338173f60eba2d10016beff1dff2bf4
parent32ce1fb28e5ce4a80c3b87573ce521df6ee0b042 (diff)
Disallow voting your own polls.
-rw-r--r--html.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/html.c b/html.c
index ea00ac1..2f92a6c 100644
--- a/html.c
+++ b/html.c
@@ -900,6 +900,9 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
if (xs_dict_get(msg, "closed"))
closed = 1;
+ else
+ if (xs_startswith(id, snac->actor))
+ closed = 1; /* we questioned? closed for us */
else {
/* not yet closed? check if we already voted for this */
xs *children = object_children(id);