summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorLouis Brauer <louis77@noreply.codeberg.org>2024-05-30 22:38:05 +0000
committerLouis Brauer <louis77@noreply.codeberg.org>2024-05-30 22:38:05 +0000
commitac3b5dcbd472b533ec543331692921b804fd02e4 (patch)
tree617f5c6a099298a92fe7ff2ca42543b933905d4e /html.c
parentc3bcb2bd3b354bb05997347821a37506ca6cc298 (diff)
parenteed9324cb0ea216bfb649a47bbfcc521824a2836 (diff)
Merge branch 'master' into announcements
Diffstat (limited to 'html.c')
-rw-r--r--html.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/html.c b/html.c
index e1d4981..2274f74 100644
--- a/html.c
+++ b/html.c
@@ -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))));
}
}
}