diff options
author | default <nobody@localhost> | 2023-05-29 09:20:25 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-05-29 09:20:25 +0200 |
commit | 22fea1725536a51672c6d0ef5b26abc62ba4a1b2 (patch) | |
tree | a58d25831338173f60eba2d10016beff1dff2bf4 | |
parent | 32ce1fb28e5ce4a80c3b87573ce521df6ee0b042 (diff) |
Disallow voting your own polls.
-rw-r--r-- | html.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |