1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 10:45:56 +00:00

reinstate HOOK_RENDER_ENCLOSURE

This commit is contained in:
Andrew Dolgov
2021-02-22 10:00:50 +03:00
parent 6f29ecbbb9
commit 33fff26869
4 changed files with 24 additions and 15 deletions

View File

@@ -150,12 +150,8 @@ const Article = {
).join("")}</span>`;
},
renderEnclosures: function (enclosures) {
// enclosure list was handled by backend (HOOK_FORMAT_ENCLOSURES)
if (enclosures.formatted)
return enclosures.formatted;
return `
${enclosures.formatted}
${enclosures.can_inline ?
`<div class='attachments-inline'>
${enclosures.entries.map((enc) => {