diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -795,12 +795,14 @@ static xs_html *html_user_body(snac *user, int read_only) | |||
| 795 | 795 | ||
| 796 | const t_announcement *an = announcement(la); | 796 | const t_announcement *an = announcement(la); |
| 797 | if (an != NULL && (an->text != NULL)) { | 797 | if (an != NULL && (an->text != NULL)) { |
| 798 | xs *s = xs_fmt("?da=%.0f", an->timestamp); | ||
| 799 | |||
| 798 | xs_html_add(top_user, xs_html_tag("div", | 800 | xs_html_add(top_user, xs_html_tag("div", |
| 799 | xs_html_attr("class", "snac-announcement"), | 801 | xs_html_attr("class", "snac-announcement"), |
| 800 | xs_html_text(an->text), | 802 | xs_html_text(an->text), |
| 801 | xs_html_text(" "), | 803 | xs_html_text(" "), |
| 802 | xs_html_sctag("a", | 804 | xs_html_sctag("a", |
| 803 | xs_html_attr("href", xs_dup(xs_fmt("?da=%.0f", an->timestamp)))), | 805 | xs_html_attr("href", s)), |
| 804 | xs_html_text("Dismiss"))); | 806 | xs_html_text("Dismiss"))); |
| 805 | } | 807 | } |
| 806 | 808 | ||