[Glitch] Fix audio modals not using blurhash and poster

Port 162adf61f2 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
Eugen Rochko
2020-07-02 16:27:35 +02:00
committed by Thibaut Girka
parent 2d8be0a6e1
commit ad73e05f46
2 changed files with 9 additions and 4 deletions

View File

@@ -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>