Use <content:encoded> from RSS item, if available

reviewable/pr11694/r1
Max Ignatenko 2 weeks ago committed by GitHub
parent d3011571a3
commit 4a249f2c09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -493,6 +493,10 @@ function NewsDownloader:processFeed(feed_type, feeds, limit, download_full_artic
local feed_description
if feed_type == FEED_TYPE_RSS then
feed_description = feed.description
if feed["content:encoded"] ~= nil then
-- Spec: https://web.resource.org/rss/1.0/modules/content/
feed_description = feed["content:encoded"]
end
else
feed_description = feed.summary
end

Loading…
Cancel
Save