diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -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), |