# HG changeset patch # User Kim Alvefur # Date 1612455489 100 # Node ID c402b273f2e3ae19447f76db7f1cbab20dc3a4b8 # Parent 3fe2c264aac47871da973b8d2298a2208944af67 mod_pubsub_feeds: Copy Atom tags from RSS as-is I've seen some RSS feeds that use Atom elements. diff -r 3fe2c264aac4 -r c402b273f2e3 mod_pubsub_feeds/feeds.lib.lua --- a/mod_pubsub_feeds/feeds.lib.lua Thu Feb 04 01:12:41 2021 +0100 +++ b/mod_pubsub_feeds/feeds.lib.lua Thu Feb 04 16:16:29 2021 -0001 @@ -72,6 +72,10 @@ translator(feed, tag); end end + -- Preserve Atom-namespaced items + for atomtag in item:childtags(nil, "http://www.w3.org/2005/Atom") do + feed:add_child(st.clone(atomtag)); + end feed:reset(); end return feed;