summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar Louis Brauer2024-05-30 22:38:05 +0000
committerGravatar Louis Brauer2024-05-30 22:38:05 +0000
commitac3b5dcbd472b533ec543331692921b804fd02e4 (patch)
tree617f5c6a099298a92fe7ff2ca42543b933905d4e /html.c
parentImplement instance announcements (diff)
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-ac3b5dcbd472b533ec543331692921b804fd02e4.tar.gz
snac2-ac3b5dcbd472b533ec543331692921b804fd02e4.tar.xz
snac2-ac3b5dcbd472b533ec543331692921b804fd02e4.zip
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,
1909 xs_html_tag("a", 1909 xs_html_tag("a",
1910 xs_html_attr("href", href), 1910 xs_html_attr("href", href),
1911 xs_html_text(href)))); 1911 xs_html_text(href))));
1912
1913 /* do not generate an Alt... */
1914 name = NULL;
1912 } 1915 }
1913 else { 1916 else {
1914 xs_html_add(content_attachments, 1917 xs_html_add(content_attachments,
@@ -1918,6 +1921,19 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
1918 xs_html_text(L("Attachment")), 1921 xs_html_text(L("Attachment")),
1919 xs_html_text(": "), 1922 xs_html_text(": "),
1920 xs_html_text(href)))); 1923 xs_html_text(href))));
1924
1925 /* do not generate an Alt... */
1926 name = NULL;
1927 }
1928
1929 if (name != NULL && *name) {
1930 xs_html_add(content_attachments,
1931 xs_html_tag("p",
1932 xs_html_attr("class", "snac-alt-text"),
1933 xs_html_tag("details",
1934 xs_html_tag("summary",
1935 xs_html_text(L("Alt..."))),
1936 xs_html_text(name))));
1921 } 1937 }
1922 } 1938 }
1923 } 1939 }