|
|
@ -26,12 +26,14 @@ |
|
|
|
%a.status__content__spoiler-link{ href: '#' }= t('statuses.show_more') |
|
|
|
.e-content{ lang: status.language, style: "display: #{!current_account&.user&.setting_expand_spoilers && status.spoiler_text? ? 'none' : 'block'}; direction: #{rtl_status?(status) ? 'rtl' : 'ltr'}" }= Formatter.instance.format(status, custom_emojify: true, autoplay: autoplay) |
|
|
|
|
|
|
|
- unless status.media_attachments.empty? |
|
|
|
- if !status.media_attachments.empty? |
|
|
|
- if status.media_attachments.first.video? |
|
|
|
- video = status.media_attachments.first |
|
|
|
= react_component :video, src: video.file.url(:original), preview: video.file.url(:small), sensitive: !current_account&.user&.show_all_media? && status.sensitive? || current_account&.user&.hide_all_media?, width: 610, height: 343, inline: true, alt: video.description |
|
|
|
- else |
|
|
|
= react_component :media_gallery, height: 343, sensitive: !current_account&.user&.show_all_media? && status.sensitive? || current_account&.user&.hide_all_media?, 'autoPlayGif': current_account&.user&.setting_auto_play_gif || autoplay, media: status.media_attachments.map { |a| ActiveModelSerializers::SerializableResource.new(a, serializer: REST::MediaAttachmentSerializer).as_json } |
|
|
|
- elsif status.preview_card |
|
|
|
= react_component :card, 'maxDescription': 160, card: ActiveModelSerializers::SerializableResource.new(status.preview_card, serializer: REST::PreviewCardSerializer).as_json |
|
|
|
|
|
|
|
.status__action-bar |
|
|
|
.status__action-bar__counter |
|
|
|