snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit a658e5d1c70cb1270216a517e76a87acd3b04653
parent 8b3471afb7adf38d31d7ee5220be0930960330aa
Author: default <nobody@localhost>
Date:   Sun,  3 Dec 2023 11:51:26 +0100

Don't show polls as 'votable' from the public timeline.

Diffstat:
Mhtml.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/html.c b/html.c @@ -1443,6 +1443,9 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local, xs_html *poll = xs_html_tag("div", NULL); + if (local) + closed = 1; /* non-identified page; show as closed */ + else if (xs_dict_get(msg, "closed")) closed = 2; else