about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/account_gallery/index.js
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-08-20 19:46:41 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-08-20 19:46:41 +0200
commitb48c7ee059d0e08fff4bdf7fe7b0e09565288252 (patch)
tree4412e92be769ebcfc7fa1e51dd4616736910e48b /app/javascript/mastodon/features/account_gallery/index.js
parent97af209c3113926534fe8c5adb7ad51fa4527cbe (diff)
Fix handling of audio files in account media gallery (#11629)
Fixes #11627
Diffstat (limited to 'app/javascript/mastodon/features/account_gallery/index.js')
-rw-r--r--app/javascript/mastodon/features/account_gallery/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/account_gallery/index.js b/app/javascript/mastodon/features/account_gallery/index.js
index f1a665d8f..f3bf7a2bd 100644
--- a/app/javascript/mastodon/features/account_gallery/index.js
+++ b/app/javascript/mastodon/features/account_gallery/index.js
@@ -100,7 +100,7 @@ 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']);