Do not autoplay sound for gifv attachments

This commit is contained in:
arne 2025-11-20 19:48:33 +01:00
commit 7ea11bfeb4

View file

@ -326,7 +326,7 @@
"video" [:video {:controls true} "video" [:video {:controls true}
[:source {:type (str "video/" ext) :src remote-url}] [:source {:type (str "video/" ext) :src remote-url}]
[:a {:href (:remote_url attachment)} (str "Original video at " (:remote_url attachment))]] [:a {:href (:remote_url attachment)} (str "Original video at " (:remote_url attachment))]]
"gifv" [:video {:controls true :loop true :autoplay true} "gifv" [:video {:loop true :autoplay true :muted true}
[:source {:type (str "video/" ext) :src remote-url}] [:source {:type (str "video/" ext) :src remote-url}]
[:a {:href (:remote_url attachment)} (str "Original video at " (:remote_url attachment))]] [:a {:href (:remote_url attachment)} (str "Original video at " (:remote_url attachment))]]
[:div [:strong "Unsupported attachment"] [:div [:strong "Unsupported attachment"]