add m4a to audio onebox filetypes
This commit is contained in:
parent
2720205f78
commit
3159dfb0ee
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue