about summary refs log tree commit diff
path: root/app/views/statuses/_simple_status.html.haml
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2020-07-11 12:31:22 -0500
committerStarfall <us@starfall.systems>2020-07-11 12:31:22 -0500
commit2f20bc2a8275875033c97249825a2a3305980c3b (patch)
tree079a021ab1ce792a40555e0718f9861ee8b53f7a /app/views/statuses/_simple_status.html.haml
parent816d10c7eecd83cb0f115c10328cbb504dabc7e9 (diff)
parent7a23347db5be3f262dbcafbecf768588dc648bda (diff)
Merge branch 'glitch' into main
Diffstat (limited to 'app/views/statuses/_simple_status.html.haml')
-rw-r--r--app/views/statuses/_simple_status.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/statuses/_simple_status.html.haml b/app/views/statuses/_simple_status.html.haml
index b31072676..aa1e83151 100644
--- a/app/views/statuses/_simple_status.html.haml
+++ b/app/views/statuses/_simple_status.html.haml
@@ -35,7 +35,7 @@
   - if !status.media_attachments.empty?
     - if status.media_attachments.first.video?
       - video = status.media_attachments.first
-      = react_component :video, src: video.file.url(:original), preview: video.file.url(:small), blurhash: video.blurhash, sensitive: status.sensitive?, width: 610, height: 343, inline: true, alt: video.description do
+      = react_component :video, src: video.file.url(:original), preview: video.thumbnail.present? ? video.thumbnail.url : video.file.url(:small), blurhash: video.blurhash, sensitive: status.sensitive?, width: 610, height: 343, inline: true, alt: video.description do
         = render partial: 'statuses/attachment_list', locals: { attachments: status.media_attachments }
     - elsif status.media_attachments.first.audio?
       - audio = status.media_attachments.first