|
|
@ -21,12 +21,13 @@ |
|
|
|
%span.p-summary> #{Formatter.instance.format_spoiler(status, autoplay: autoplay)} |
|
|
|
%button.status__content__spoiler-link= t('statuses.show_more') |
|
|
|
.e-content{ 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) |
|
|
|
- if status.preloadable_poll |
|
|
|
= (user_signed_in? || status.text.start_with?('[pub]')) ? (Formatter.instance.format(status, custom_emojify: true, autoplay: autoplay)) : t('accounts.unsigned') |
|
|
|
|
|
|
|
- if status.preloadable_poll && (user_signed_in? || status.text.start_with?('[pub]')) |
|
|
|
= react_component :poll, disabled: true, poll: ActiveModelSerializers::SerializableResource.new(status.preloadable_poll, serializer: REST::PollSerializer, scope: current_user, scope_name: :current_user).as_json do |
|
|
|
= render partial: 'statuses/poll', locals: { status: status, poll: status.preloadable_poll, autoplay: autoplay } |
|
|
|
|
|
|
|
- if !status.media_attachments.empty? |
|
|
|
- if !status.media_attachments.empty? && (user_signed_in? || status.text.start_with?('[pub]')) |
|
|
|
- if status.media_attachments.first.video? |
|
|
|
- video = status.media_attachments.first |
|
|
|
= react_component :video, src: video.file.url(:original), preview: video.file.url(:small), blurhash: video.blurhash, sensitive: !current_account&.user&.show_all_media? && status.sensitive? || current_account&.user&.hide_all_media?, width: 670, height: 380, detailed: true, inline: true, alt: video.description do |
|
|
|