mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Disallow voting your own polls.
This commit is contained in:
parent
32ce1fb28e
commit
22fea17255
1 changed files with 3 additions and 0 deletions
3
html.c
3
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);
|
||||
|
|
Loading…
Reference in a new issue