feat: generate quote content_html, telegram channel repost extra data

This commit is contained in:
DIYgod
2023-01-30 22:00:07 +00:00
parent 6b4fb8fd8a
commit 52678c9eef
4 changed files with 17 additions and 2 deletions

View File

@@ -139,6 +139,11 @@ module.exports = async (ctx, next) => {
});
item.description = $('body').html() + '' + (config.suffix || '');
const quote = item._extra?.links?.find((e) => e.type === 'quote');
if (quote && $('.rsshub-quote').length) {
quote.content_html = $.html($('.rsshub-quote'));
}
}
return item;
};