summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar grunfink2023-12-15 10:07:13 +0000
committerGravatar grunfink2023-12-15 10:07:13 +0000
commit91b656f111762b4b163eda0f4673ded72e23038e (patch)
tree6144f2261be45832d7d48a87f52497124750910b /html.c
parentUpdated RELEASE_NOTES. (diff)
parenthtml.c: media: disable preloading (diff)
downloadsnac2-91b656f111762b4b163eda0f4673ded72e23038e.tar.gz
snac2-91b656f111762b4b163eda0f4673ded72e23038e.tar.xz
snac2-91b656f111762b4b163eda0f4673ded72e23038e.zip
Merge pull request 'html.c: media: disable preloading' (#87) from Yonle/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/87
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/html.c b/html.c
index 42a4a4e..60e7140 100644
--- a/html.c
+++ b/html.c
@@ -1657,6 +1657,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
1657 if (xs_startswith(t, "video/")) { 1657 if (xs_startswith(t, "video/")) {
1658 xs_html_add(content_attachments, 1658 xs_html_add(content_attachments,
1659 xs_html_tag("video", 1659 xs_html_tag("video",
1660 xs_html_attr("preload", "none"),
1660 xs_html_attr("style", "width: 100%"), 1661 xs_html_attr("style", "width: 100%"),
1661 xs_html_attr("class", "snac-embedded-video"), 1662 xs_html_attr("class", "snac-embedded-video"),
1662 xs_html_attr("controls", NULL), 1663 xs_html_attr("controls", NULL),
@@ -1671,6 +1672,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
1671 if (xs_startswith(t, "audio/")) { 1672 if (xs_startswith(t, "audio/")) {
1672 xs_html_add(content_attachments, 1673 xs_html_add(content_attachments,
1673 xs_html_tag("audio", 1674 xs_html_tag("audio",
1675 xs_html_attr("preload", "none"),
1674 xs_html_attr("style", "width: 100%"), 1676 xs_html_attr("style", "width: 100%"),
1675 xs_html_attr("class", "snac-embedded-audio"), 1677 xs_html_attr("class", "snac-embedded-audio"),
1676 xs_html_attr("controls", NULL), 1678 xs_html_attr("controls", NULL),