mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 14:40:23 +08:00
feat: add content_html for reply extra data
This commit is contained in:
@@ -140,9 +140,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'));
|
||||
if (item._extra?.links && $('.rsshub-quote').length) {
|
||||
item._extra?.links?.map((e) => {
|
||||
e.content_html = $.html($('.rsshub-quote'));
|
||||
return e;
|
||||
});
|
||||
}
|
||||
}
|
||||
return item;
|
||||
|
||||
Reference in New Issue
Block a user