Merge pull request #4281 from scossar/add-m4a-to-audio-onebox-filetypes
FEATURE: add m4a to list of audio file extensions
This commit is contained in:
commit
bf7ea8bb73
|
@ -265,7 +265,7 @@ Discourse.Utilities = {
|
|||
getUploadMarkdown: function(upload) {
|
||||
if (Discourse.Utilities.isAnImage(upload.original_filename)) {
|
||||
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
|
||||
return Discourse.Utilities.uploadLocation(upload.url);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue