2022-10-26 04:42:29 -07:00
|
|
|
- if status.ordered_media_attachments.first.video?
|
2023-09-05 11:05:58 -07:00
|
|
|
= render_video_component(status, visible: false)
|
2022-10-26 04:42:29 -07:00
|
|
|
- elsif status.ordered_media_attachments.first.audio?
|
|
|
|
- audio = status.ordered_media_attachments.first
|
2024-01-11 05:14:24 -08:00
|
|
|
= react_component :audio,
|
|
|
|
alt: audio.description,
|
|
|
|
duration: audio.file.meta.dig(:original, :duration),
|
|
|
|
height: 110,
|
|
|
|
lang: status.language,
|
|
|
|
src: audio.file.url(:original)
|
2022-10-26 04:42:29 -07:00
|
|
|
- else
|
2024-01-11 05:14:24 -08:00
|
|
|
= react_component :media_gallery,
|
|
|
|
height: 343,
|
|
|
|
lang: status.language,
|
2024-02-06 05:18:37 -08:00
|
|
|
media: serialized_media_attachments(status.ordered_media_attachments),
|
2024-01-11 05:14:24 -08:00
|
|
|
sensitive: status.sensitive?,
|
|
|
|
visible: false
|