diff options
| author | 2023-12-03 11:51:26 +0100 | |
|---|---|---|
| committer | 2023-12-03 11:51:26 +0100 | |
| commit | a658e5d1c70cb1270216a517e76a87acd3b04653 (patch) | |
| tree | 011fb453037b2870d1bd4c1e58152b64f0912ca6 | |
| parent | Backport from xs. (diff) | |
| download | snac2-a658e5d1c70cb1270216a517e76a87acd3b04653.tar.gz snac2-a658e5d1c70cb1270216a517e76a87acd3b04653.tar.xz snac2-a658e5d1c70cb1270216a517e76a87acd3b04653.zip | |
Don't show polls as 'votable' from the public timeline.
| -rw-r--r-- | html.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -1443,6 +1443,9 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local, | |||
| 1443 | 1443 | ||
| 1444 | xs_html *poll = xs_html_tag("div", NULL); | 1444 | xs_html *poll = xs_html_tag("div", NULL); |
| 1445 | 1445 | ||
| 1446 | if (local) | ||
| 1447 | closed = 1; /* non-identified page; show as closed */ | ||
| 1448 | else | ||
| 1446 | if (xs_dict_get(msg, "closed")) | 1449 | if (xs_dict_get(msg, "closed")) |
| 1447 | closed = 2; | 1450 | closed = 2; |
| 1448 | else | 1451 | else |