about summary refs log tree commit diff
path: root/app/views/statuses/_detailed_status.html.haml
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-07-05 22:55:09 +0200
committerGitHub <noreply@github.com>2020-07-05 22:55:09 +0200
commit94e09d309cb068ea92919767e40e655260ac43cb (patch)
tree8c41900d4f4c8a94cb5a2feee1af2080ae2dec15 /app/views/statuses/_detailed_status.html.haml
parent9b3677d5097fb50f90a6abdce9d722e81d2db469 (diff)
parent69cddc3909924b5a2ce02f85932fb41f88faf0db (diff)
Merge pull request #1371 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/views/statuses/_detailed_status.html.haml')
-rw-r--r--app/views/statuses/_detailed_status.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/statuses/_detailed_status.html.haml b/app/views/statuses/_detailed_status.html.haml
index d10017db9..dce122607 100644
--- a/app/views/statuses/_detailed_status.html.haml
+++ b/app/views/statuses/_detailed_status.html.haml
@@ -33,7 +33,7 @@
         = render partial: 'statuses/attachment_list', locals: { attachments: status.media_attachments }
     - elsif status.media_attachments.first.audio?
       - audio = status.media_attachments.first
-      = react_component :audio, src: audio.file.url(:original), poster: audio.thumbnail.present? ? audio.thumbnail.url : status.account.avatar_static_url, blurhash: audio.blurhash, width: 670, height: 380, alt: audio.description, duration: audio.file.meta.dig('original', 'duration') do
+      = react_component :audio, src: audio.file.url(:original), poster: audio.thumbnail.present? ? audio.thumbnail.url : status.account.avatar_static_url, backgroundColor: audio.file.meta.dig('colors', 'background'), foregroundColor: audio.file.meta.dig('colors', 'foreground'), accentColor: audio.file.meta.dig('colors', 'accent'), width: 670, height: 380, alt: audio.description, duration: audio.file.meta.dig('original', 'duration') do
         = render partial: 'statuses/attachment_list', locals: { attachments: status.media_attachments }
     - else
       = react_component :media_gallery, height: 380, sensitive: status.sensitive?, standalone: true, autoplay: autoplay, media: status.media_attachments.map { |a| ActiveModelSerializers::SerializableResource.new(a, serializer: REST::MediaAttachmentSerializer).as_json } do