Skip to content

Commit

Permalink
Fix admin interface crashing when listing boosts with non-video media…
Browse files Browse the repository at this point in the history
… attachments

Fix regression introduced by mastodon#12879
  • Loading branch information
ClearlyClaire committed Jan 20, 2020
1 parent 5118284 commit cc13e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/admin/reports/_status.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc13e76

Please sign in to comment.