about summary refs log tree commit diff
path: root/app/views/statuses/_detailed_status.html.haml
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-07-09 12:53:16 +0200
committerGitHub <noreply@github.com>2020-07-09 12:53:16 +0200
commit5b7a93b02cfa4916bd7a99d876b0e6b567e639c3 (patch)
treee5a378f30a7e4e3575fa274fb31097663e9fd0a4 /app/views/statuses/_detailed_status.html.haml
parentfbbec3fc0b472abcf2acc20de71f09e0fbfaa010 (diff)
Fix videos on public pages not using custom thumbnails (#14273)
Diffstat (limited to 'app/views/statuses/_detailed_status.html.haml')
-rw-r--r--app/views/statuses/_detailed_status.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/statuses/_detailed_status.html.haml b/app/views/statuses/_detailed_status.html.haml
index dce122607..85b2ceea4 100644
--- a/app/views/statuses/_detailed_status.html.haml
+++ b/app/views/statuses/_detailed_status.html.haml
@@ -29,7 +29,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: 670, height: 380, detailed: true, 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: 670, height: 380, detailed: true, 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