Add mp4 to attachments.

This commit is contained in:
Roger Braun 2016-11-06 17:43:31 +01:00
parent 2917f4ab44
commit 15800bab57
2 changed files with 3 additions and 3 deletions

View file

@ -19,8 +19,8 @@ const Attachment = {
type = 'image';
}
if(this.attachment.mimetype.match(/video\/webm/)) {
type = 'webm';
if(this.attachment.mimetype.match(/video\/(webm|mp4)/)) {
type = 'video';
};
return type