--- a/mod_pubsub_feeds/mod_pubsub_feeds.lua Mon Mar 10 08:22:58 2014 +0000
+++ b/mod_pubsub_feeds/mod_pubsub_feeds.lua Tue Mar 11 18:44:01 2014 +0100
@@ -112,7 +112,7 @@
end
end
end
-
+
if use_pubsubhubub and not item.subscription then
--module:log("debug", "check if %s has a hub", item.node);
local hub = feed.links and feed.links.hub;
@@ -129,7 +129,7 @@
if item.data and item.last_update then
headers["If-Modified-Since"] = date("!%a, %d %b %Y %H:%M:%S %Z", item.last_update);
end
- http.request(item.url, { headers = headers }, function(data, code)
+ http.request(item.url, { headers = headers }, function(data, code)
if code == 200 then
item.data = data;
if callback then callback(item) end
@@ -146,7 +146,7 @@
for node, item in pairs(feed_list) do
--FIXME Don't fetch feeds which have a subscription
-- Otoho, what if the subscription expires or breaks?
- if force or item.last_update + refresh_interval < now then
+ if force or item.last_update + refresh_interval < now then
--module:log("debug", "checking %s", item.node);
fetch(item, update_entry);
end
@@ -156,7 +156,7 @@
local function format_url(node)
return module:http_url(nil, "/callback") .. "?node=" .. urlencode(node);
-end
+end
function subscribe(feed, want)
want = want or "subscribe";