Disallow voting your own polls.

This commit is contained in:
default 2023-05-29 09:20:25 +02:00
parent 32ce1fb28e
commit 22fea17255

3
html.c
View file

@ -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);