# HG changeset patch # User Kim Alvefur # Date 1293386353 -3600 # Node ID 801066bf57935452bdd5df4b84bd43b48814f704 # Parent 451e734045d4de01ed991da3d2054547533b194f mod_pubsub_feed: Fix detection of updated posts diff -r 451e734045d4 -r 801066bf5793 mod_pubsub_feed/mod_pubsub_feed.lua --- a/mod_pubsub_feed/mod_pubsub_feed.lua Sun Dec 26 02:23:16 2010 +0100 +++ b/mod_pubsub_feed/mod_pubsub_feed.lua Sun Dec 26 18:59:13 2010 +0100 @@ -65,7 +65,7 @@ e_updated = e_updated and e_updated[1]; e_updated = e_updated and dt_parse(e_updated); - local timestamp = e_published or e_updated or nil; + local timestamp = e_updated or e_published or nil; module:log("debug", "timestamp is %s, item.last_update is %s", tostring(timestamp), tostring(item.last_update)); if not timestamp or not item.last_update or timestamp > item.last_update then local id = entry:get_child("id");