diff options
author | Takeshi Umeda <noel.yoshiba@gmail.com> | 2020-12-31 07:18:11 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-30 23:18:11 +0100 |
commit | cb5bb2313b333b8f985e26a09415069b43770a37 (patch) | |
tree | 7ab941f3d6b69ff78d35090d0b8298d4baec61f7 /app/views/admin/reports | |
parent | b5bd67a4775ccd528ce89eb00cfc208b3b8fa75f (diff) |
Fix expand video on public page (#15469)
Diffstat (limited to 'app/views/admin/reports')
-rw-r--r-- | app/views/admin/reports/_status.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/reports/_status.html.haml b/app/views/admin/reports/_status.html.haml index fa15796d2..ada6dd2bc 100644 --- a/app/views/admin/reports/_status.html.haml +++ b/app/views/admin/reports/_status.html.haml @@ -14,7 +14,7 @@ - unless status.proper.media_attachments.empty? - if status.proper.media_attachments.first.video? - video = status.proper.media_attachments.first - = react_component :video, src: video.file.url(:original), preview: video.file.url(:small), blurhash: video.blurhash, sensitive: status.proper.sensitive?, visible: false, width: 610, height: 343, inline: true, alt: video.description + = react_component :video, src: video.file.url(:original), preview: video.file.url(:small), frameRate: video.file.meta.dig('original', 'frame_rate'), blurhash: video.blurhash, sensitive: status.proper.sensitive?, visible: false, width: 610, height: 343, inline: true, alt: video.description, media: [ActiveModelSerializers::SerializableResource.new(video, serializer: REST::MediaAttachmentSerializer)].as_json - elsif status.proper.media_attachments.first.audio? - audio = status.proper.media_attachments.first = react_component :audio, src: audio.file.url(:original), height: 110, alt: audio.description, duration: audio.file.meta.dig(:original, :duration) |