${m.attachments.map(f=>{
+ const fname=f.split('/').pop()||f;
+ if(_IMAGE_EXTS.test(fname)){
+ const imgUrl='api/media?path='+encodeURIComponent(f);
+ return `
})
`;
+ }
+ return `
${li('paperclip',12)} ${esc(fname)}
`;
+ }).join('')}
`;
}
const bodyHtml = isUser ? esc(String(content)).replace(/\n/g,'