add m4a to audio onebox filetypes

This commit is contained in:
scossar 2016-06-20 14:41:37 -07:00
parent 2720205f78
commit 3159dfb0ee
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ Discourse.Utilities = {
getUploadMarkdown: function(upload) { getUploadMarkdown: function(upload) {
if (Discourse.Utilities.isAnImage(upload.original_filename)) { if (Discourse.Utilities.isAnImage(upload.original_filename)) {
return '<img src="' + upload.url + '" width="' + upload.width + '" height="' + upload.height + '">'; return '<img src="' + upload.url + '" width="' + upload.width + '" height="' + upload.height + '">';
} else if (!Discourse.SiteSettings.prevent_anons_from_downloading_files && (/\.(mov|mp4|webm|ogv|mp3|ogg|wav)$/i).test(upload.original_filename)) { } else if (!Discourse.SiteSettings.prevent_anons_from_downloading_files && (/\.(mov|mp4|webm|ogv|mp3|ogg|wav|m4a)$/i).test(upload.original_filename)) {
// is Audio/Video // is Audio/Video
return Discourse.Utilities.uploadLocation(upload.url); return Discourse.Utilities.uploadLocation(upload.url);
} else { } else {