about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/ui/components/audio_modal.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-07-02 16:27:35 +0200
committerThibaut Girka <thib@sitedethib.com>2020-07-05 20:18:51 +0200
commitad73e05f464bac6ef52c2a2fd0a472dd6b8c14ce (patch)
tree9d5b630a766c847b85e7ff3f411f6c1c2eb492c4 /app/javascript/flavours/glitch/features/ui/components/audio_modal.js
parent2d8be0a6e1fbe9da892937b05b373ab907d89b77 (diff)
[Glitch] Fix audio modals not using blurhash and poster
Port 162adf61f268beac6e178f6f79f203b213055915 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/ui/components/audio_modal.js')
-rw-r--r--app/javascript/flavours/glitch/features/ui/components/audio_modal.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/features/ui/components/audio_modal.js b/app/javascript/flavours/glitch/features/ui/components/audio_modal.js
index 08fbddc91..90428d883 100644
--- a/app/javascript/flavours/glitch/features/ui/components/audio_modal.js
+++ b/app/javascript/flavours/glitch/features/ui/components/audio_modal.js
@@ -36,8 +36,9 @@ export default class AudioModal extends ImmutablePureComponent {
             src={media.get('url')}
             alt={media.get('description')}
             duration={media.getIn(['meta', 'original', 'duration'], 0)}
-            height={135}
-            preload
+            height={150}
+            poster={media.get('preview_url') || status.getIn(['account', 'avatar_static'])}
+            blurhash={media.get('blurhash')}
           />
         </div>