diff options
author | ThibG <thib@sitedethib.com> | 2019-08-20 21:33:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-20 21:33:57 +0200 |
commit | da7e0d4f5536a43da88103320482a7b54eb8615b (patch) | |
tree | 70f3571cd1d3b117df3363072740ea4423803165 /app/javascript/flavours/glitch/features/account_gallery/index.js | |
parent | bce46f2057b06e78958a42821f3ce18c945de88d (diff) | |
parent | f1528ea3c4b81dbc3f7bb8b5b5ae7734eeda989f (diff) |
Merge pull request #1200 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/javascript/flavours/glitch/features/account_gallery/index.js')
-rw-r--r-- | app/javascript/flavours/glitch/features/account_gallery/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/account_gallery/index.js b/app/javascript/flavours/glitch/features/account_gallery/index.js index 3e4421306..66b938bea 100644 --- a/app/javascript/flavours/glitch/features/account_gallery/index.js +++ b/app/javascript/flavours/glitch/features/account_gallery/index.js @@ -111,7 +111,7 @@ export default class AccountGallery extends ImmutablePureComponent { } handleOpenMedia = attachment => { - if (attachment.get('type') === 'video') { + if (['video', 'audio'].includes(attachment.get('type'))) { this.props.dispatch(openModal('VIDEO', { media: attachment, status: attachment.get('status') })); } else { const media = attachment.getIn(['status', 'media_attachments']); |