parent
a78523fcef
commit
abfaa26d61
|
|
@ -51,6 +51,12 @@ module.exports = async (ctx) => {
|
|||
images.push(`<p><img referrerpolicy="no-referrer" src="${contentItem.url.replace('xl', 'r')}"/></p>`);
|
||||
} else if (contentItem.type === 'link') {
|
||||
link = `<p><a href="${contentItem.url}" target="_blank">${contentItem.title}</a></p>`;
|
||||
} else if (contentItem.type === 'video') {
|
||||
link = `<p><video
|
||||
controls = "controls"
|
||||
width = "${contentItem.playlist[1].width}"
|
||||
height = "${contentItem.playlist[1].height}"
|
||||
src = "${contentItem.playlist[1].url}"></p>`;
|
||||
}
|
||||
});
|
||||
description = `${text}${link}${images.join('')}`;
|
||||
|
|
|
|||
Loading…
Reference in New Issue