comparison mod_pubsub_feeds/mod_pubsub_feeds.lua @ 796:9e1dab7310c0

mod_pubsub_feeds: Fix method call
author Kim Alvefur <zash@zash.se>
date Wed, 15 Aug 2012 17:25:47 +0200
parents c7f507a190a0
children 68a067d5ed3b
comparison
equal deleted inserted replaced
795:c7f507a190a0 796:9e1dab7310c0
45 local config = module:get_option("feeds") or { 45 local config = module:get_option("feeds") or {
46 planet_jabber = "http://planet.jabber.org/atom.xml"; 46 planet_jabber = "http://planet.jabber.org/atom.xml";
47 prosody_blog = "http://blog.prosody.im/feed/atom.xml"; 47 prosody_blog = "http://blog.prosody.im/feed/atom.xml";
48 }; 48 };
49 refresh_interval = module:get_option_number("feed_pull_interval", 15) * 60; 49 refresh_interval = module:get_option_number("feed_pull_interval", 15) * 60;
50 local nodes = pubsub.service.get_nodes(true); 50 local nodes = pubsub.service:get_nodes(true);
51 local new_feed_list = {}; 51 local new_feed_list = {};
52 for node, url in pairs(config) do 52 for node, url in pairs(config) do
53 if type(node) == "number" then 53 if type(node) == "number" then
54 node = url; 54 node = url;
55 end 55 end