Diff

mod_pubsub_feeds/mod_pubsub_feeds.lua @ 2381:a4614a329bdd

mod_pubsub_feeds: Get entry from list of entries (thanks Link Mauve)
author Kim Alvefur <zash@zash.se>
date Sat, 19 Nov 2016 19:17:49 +0100
parent 2380:2f083426fe98
child 2382:f159ad7ac18a
line wrap: on
line diff
--- 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");