# HG changeset patch # User Kim Alvefur # Date 1479579469 -3600 # Node ID a4614a329bdd1634c537792e4a57f36cd2adf728 # Parent 2f083426fe98c389de2733c27f97660b4e40a9a9 mod_pubsub_feeds: Get entry from list of entries (thanks Link Mauve) diff -r 2f083426fe98 -r a4614a329bdd mod_pubsub_feeds/mod_pubsub_feeds.lua --- a/mod_pubsub_feeds/mod_pubsub_feeds.lua Sat Nov 19 19:07:53 2016 +0100 +++ b/mod_pubsub_feeds/mod_pubsub_feeds.lua Sat Nov 19 19:17:49 2016 +0100 @@ -84,7 +84,7 @@ table.insert(entries, entry); end for i = #entries, 1, -1 do -- Feeds are usually in reverse order - local entry = feed[i]; + local entry = entries[i]; entry.attr.xmlns = xmlns_atom; local e_published = entry:get_child_text("published");