about summary refs log tree commit diff
path: root/app/views/admin/reports
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-01-20 17:39:14 +0100
committerEugen Rochko <eugen@zeonfederated.com>2020-01-20 17:39:14 +0100
commit91e4955e08506abc5fa70dadc9ffa6956b1fb0bc (patch)
treeacf38c71ba67ff62bcad43e8a371d67f24665d8f /app/views/admin/reports
parentba16d4b4138f12670ce0d056fb025b375dd3fb8d (diff)
Fix admin interface crashing when listing boosts with non-video media attachments (#12907)
Fix regression introduced by #12879
Diffstat (limited to 'app/views/admin/reports')
-rw-r--r--app/views/admin/reports/_status.html.haml2
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 105352e46..fa15796d2 100644
--- a/app/views/admin/reports/_status.html.haml
+++ b/app/views/admin/reports/_status.html.haml
@@ -15,7 +15,7 @@
       - 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
-      - elsif status.media_attachments.first.audio?
+      - 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)
       - else