Skip to content

Commit cc13e76

Browse files
committed
Fix admin interface crashing when listing boosts with non-video media attachments
Fix regression introduced by mastodon#12879
1 parent 5118284 commit cc13e76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/admin/reports/_status.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- if status.proper.media_attachments.first.video?
1616
- video = status.proper.media_attachments.first
1717
= 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
18-
- elsif status.media_attachments.first.audio?
18+
- elsif status.proper.media_attachments.first.audio?
1919
- audio = status.proper.media_attachments.first
2020
= react_component :audio, src: audio.file.url(:original), height: 110, alt: audio.description, duration: audio.file.meta.dig(:original, :duration)
2121
- else

0 commit comments

Comments
 (0)