diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 99958589..47ca03de 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -23,6 +23,10 @@ const Attachment = { type = 'video' }; + if (this.attachment.mimetype.match(/ogg|audio/)) { + type = 'audio' + } + return type } }, diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 0e2a228a..4e8c1407 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -8,6 +8,8 @@ + + Don't know how to display this...