Compare commits

...

1 Commits

Author SHA1 Message Date
Reinaldo Neto 6855dbff7c Fixed to view files inside the file list 2021-07-13 16:24:26 -03:00
1 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,13 @@ export default function(message) {
return { audio_url: message.url }; return { audio_url: message.url };
} }
if (/video/.test(message.type)) { if (/video/.test(message.type)) {
return { video_url: message.url }; let video_url = message.url;
const regUfsUpload = /ufs\/.*Uploads/;
if (regUfsUpload.test(video_url)) {
video_url = video_url.replace(regUfsUpload, 'file-upload');
}
return { video_url, video_type: message.type };
} }
return { return {
title_link: message.url, title_link: message.url,