diff options
author | Louis Brauer <louis77@noreply.codeberg.org> | 2024-05-30 22:38:05 +0000 |
---|---|---|
committer | Louis Brauer <louis77@noreply.codeberg.org> | 2024-05-30 22:38:05 +0000 |
commit | ac3b5dcbd472b533ec543331692921b804fd02e4 (patch) | |
tree | 617f5c6a099298a92fe7ff2ca42543b933905d4e /html.c | |
parent | c3bcb2bd3b354bb05997347821a37506ca6cc298 (diff) | |
parent | eed9324cb0ea216bfb649a47bbfcc521824a2836 (diff) |
Merge branch 'master' into announcements
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1909,6 +1909,9 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, xs_html_tag("a", xs_html_attr("href", href), xs_html_text(href)))); + + /* do not generate an Alt... */ + name = NULL; } else { xs_html_add(content_attachments, @@ -1918,6 +1921,19 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, xs_html_text(L("Attachment")), xs_html_text(": "), xs_html_text(href)))); + + /* do not generate an Alt... */ + name = NULL; + } + + if (name != NULL && *name) { + xs_html_add(content_attachments, + xs_html_tag("p", + xs_html_attr("class", "snac-alt-text"), + xs_html_tag("details", + xs_html_tag("summary", + xs_html_text(L("Alt..."))), + xs_html_text(name)))); } } } |