aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorgreen <dandelions@disroot.org>2025-05-05 22:52:50 +0200
committergreen <dandelions@disroot.org>2026-01-24 02:23:16 +0100
commitce8e11adc74015931d9adac6f3b108e7ec31fbf5 (patch)
tree927fc01463a59546e4ce0704e345e852f04b87b2 /html.c
parent207d9e0f01b1703ed55b00825ef65be49576254b (diff)
personal: bigger limit for polls
Diffstat (limited to 'html.c')
-rw-r--r--html.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/html.c b/html.c
index 9de51d1..77ffda9 100644
--- a/html.c
+++ b/html.c
@@ -817,7 +817,13 @@ xs_html *html_note(snac *user, const char *summary,
xs_html_text(L("End in 1 hour"))),
xs_html_tag("option",
xs_html_attr("value", "86400"),
- xs_html_text(L("End in 1 day"))))));
+ xs_html_text(L("End in 1 day"))),
+ xs_html_tag("option",
+ xs_html_attr("value", "259200"),
+ xs_html_text(L("End in 3 days"))),
+ xs_html_tag("option",
+ xs_html_attr("value", "31536000"),
+ xs_html_text(L("End in 1 year"))))));
}
xs_html_add(form,
@@ -3207,6 +3213,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
xs_html *add_hashtags = xs_html_tag("ul",
xs_html_attr("class", "snac-more-hashtags"));
+ // todo: wafrn hashtags
xs_list_foreach(tags, tag) {
const char *type = xs_dict_get(tag, "type");
@@ -3857,6 +3864,8 @@ xs_html *html_people_list(snac *user, xs_list *list, const char *header, const c
xs_free(xs_html_render(snac_metadata));
}
+ // todo: add metadata from "attachemnt"->"PropertyValue"
+
/* buttons */
xs *btn_form_action = xs_fmt("%s/admin/action", user->actor);