Software /
code /
prosody-modules
Changeset
299:801066bf5793
mod_pubsub_feed: Fix detection of updated posts
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Dec 2010 18:59:13 +0100 |
parents | 298:451e734045d4 |
children | 300:b81e4f86a231 |
files | mod_pubsub_feed/mod_pubsub_feed.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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");