diff --git a/lib/middleware/parameter.js b/lib/middleware/parameter.js index ac7674ab68..51afae559c 100644 --- a/lib/middleware/parameter.js +++ b/lib/middleware/parameter.js @@ -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;