From affab3ab3c6120cb08cc3c649cc1f16698cea679 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 31 May 2024 11:24:39 +0200 Subject: Minor tweaks. --- html.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'html.c') diff --git a/html.c b/html.c index 2274f74..ff12a95 100644 --- a/html.c +++ b/html.c @@ -795,12 +795,14 @@ static xs_html *html_user_body(snac *user, int read_only) const t_announcement *an = announcement(la); if (an != NULL && (an->text != NULL)) { + xs *s = xs_fmt("?da=%.0f", an->timestamp); + xs_html_add(top_user, xs_html_tag("div", xs_html_attr("class", "snac-announcement"), xs_html_text(an->text), xs_html_text(" "), xs_html_sctag("a", - xs_html_attr("href", xs_dup(xs_fmt("?da=%.0f", an->timestamp)))), + xs_html_attr("href", s)), xs_html_text("Dismiss"))); } -- cgit v1.2.3