various critical fixes (pls don't report this to NVD)th-downstream
parent
e9dbe31776
commit
c1910db65f
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,9 +1,9 @@
|
|||||||
enableGlobalCache: true
|
enableGlobalCache: true
|
||||||
|
|
||||||
nodeLinker: node-modules
|
|
||||||
|
|
||||||
yarnPath: .yarn/releases/yarn-3.4.1.cjs
|
|
||||||
|
|
||||||
logFilters:
|
logFilters:
|
||||||
- code: YN0013
|
- code: YN0013
|
||||||
level: ${YARN_NOISE_LOG_CODE_LEVEL:-info}
|
level: "${YARN_NOISE_LOG_CODE_LEVEL:-info}"
|
||||||
|
|
||||||
|
nodeLinker: node-modules
|
||||||
|
|
||||||
|
yarnPath: .yarn/releases/yarn-4.1.0.cjs
|
||||||
|
After Width: | Height: | Size: 322 B |
After Width: | Height: | Size: 538 B |
@ -1,35 +1,38 @@
|
|||||||
.status.quote-status{ dataurl: ActivityPub::TagManager.instance.url_for(status) }
|
.status.quote-status{ dataurl: ActivityPub::TagManager.instance.url_for(status) }
|
||||||
= link_to ActivityPub::TagManager.instance.url_for(status.account), class: 'status__display-name u-url', target: stream_link_target, rel: 'noopener' do
|
= link_to ActivityPub::TagManager.instance.url_for(status.account), class: 'status__display-name u-url', target: stream_link_target, rel: 'noopener noreferrer' do
|
||||||
.status__avatar
|
.status__avatar
|
||||||
%div
|
%div
|
||||||
= image_tag status.account.avatar_static_url, width: 18, height: 18, alt: '', class: 'u-photo account__avatar'
|
- if prefers_autoplay?
|
||||||
|
= image_tag status.account.avatar_original_url, alt: '', class: 'u-photo account__avatar'
|
||||||
|
- else
|
||||||
|
= image_tag status.account.avatar_static_url, alt: '', class: 'u-photo account__avatar'
|
||||||
%span.display-name
|
%span.display-name
|
||||||
%bdi
|
%bdi
|
||||||
%strong.display-name__html.p-name.emojify= display_name(status.account, custom_emojify: true)
|
%strong.display-name__html.p-name.emojify= display_name(status.account, custom_emojify: true, autoplay: prefers_autoplay?)
|
||||||
|
|
||||||
%span.display-name__account
|
%span.display-name__account
|
||||||
= acct(status.account)
|
= acct(status.account)
|
||||||
= fa_icon('lock') if status.account.locked?
|
= fa_icon('lock') if status.account.locked?
|
||||||
|
|
||||||
.status__content.emojify<
|
.status__content.emojify{ data: ({ spoiler: current_account&.user&.setting_expand_spoilers ? 'expanded' : 'folded' } if status.spoiler_text?) }<
|
||||||
|
|
||||||
- if status.spoiler_text?
|
- if status.spoiler_text?
|
||||||
%p{ style: ('margin-bottom: 0' unless current_account&.user&.setting_expand_spoilers) }<
|
%p<
|
||||||
%span.p-summary> #{Formatter.instance.format_spoiler(status)}
|
%span.p-summary> #{prerender_custom_emojis(h(status.spoiler_text), status.emojis)}
|
||||||
%button.status__content__spoiler-link= t('statuses.show_more')
|
%button.status__content__spoiler-link= t('statuses.show_more')
|
||||||
.e-content{ lang: status.language, style: "display: #{!current_account&.user&.setting_expand_spoilers && status.spoiler_text? ? 'none' : 'block'}" }
|
.e-content{ lang: status.language }<
|
||||||
= Formatter.instance.format_in_quote(status, custom_emojify: true)
|
= prerender_custom_emojis(status_content_format(status), status.emojis)
|
||||||
|
|
||||||
- if !status.media_attachments.empty?
|
- if status.preloadable_poll
|
||||||
- if status.media_attachments.first.video?
|
= render_poll_component(status)
|
||||||
- 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: 610, height: 343, inline: true, alt: video.description, quote: true do
|
- if !status.ordered_media_attachments.empty?
|
||||||
= render partial: 'statuses/attachment_list', locals: { attachments: status.media_attachments }
|
- if status.ordered_media_attachments.first.video?
|
||||||
- elsif status.media_attachments.first.audio?
|
= render_video_component(status, width: 610, height: 343)
|
||||||
- audio = status.media_attachments.first
|
- elsif status.ordered_media_attachments.first.audio?
|
||||||
= react_component :audio, src: audio.file.url(:original), height: 60, alt: audio.description, duration: audio.file.meta.dig(:original, :duration) do
|
= render_audio_component(status, width: 610, height: 343)
|
||||||
= render partial: 'statuses/attachment_list', locals: { attachments: status.media_attachments }
|
|
||||||
- else
|
- 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, media: status.media_attachments.map { |a| ActiveModelSerializers::SerializableResource.new(a, serializer: REST::MediaAttachmentSerializer).as_json }, quote: true do
|
= render_media_gallery_component(status, height: 343)
|
||||||
= render partial: 'statuses/attachment_list', locals: { attachments: status.media_attachments }
|
|
||||||
- elsif status.preview_card
|
- elsif status.preview_card
|
||||||
= react_component :card, maxDescription: 10, card: ActiveModelSerializers::SerializableResource.new(status.preview_card, serializer: REST::PreviewCardSerializer).as_json, quote: true
|
= render_card_component(status)
|
||||||
|
|
||||||
|
Loading…
Reference in new issue