Software /
code /
prosody-modules
Comparison
mod_pubsub_feeds/mod_pubsub_feeds.lua @ 2377:02532f28b207
mod_pubsub_feeds: Remove default feeds
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 19 Nov 2016 17:43:26 +0100 |
parent | 2137:0fe725b50f77 |
child | 2379:bc6e63ab2a7c |
comparison
equal
deleted
inserted
replaced
2376:f0e611e40e3f | 2377:02532f28b207 |
---|---|
47 | 47 |
48 local feed_list = module:shared("feed_list"); | 48 local feed_list = module:shared("feed_list"); |
49 local refresh_interval; | 49 local refresh_interval; |
50 | 50 |
51 function module.load() | 51 function module.load() |
52 local config = module:get_option("feeds") or { | 52 local config = module:get_option("feeds", { }); |
53 planet_jabber = "http://planet.jabber.org/atom.xml"; | |
54 prosody_blog = "http://blog.prosody.im/feed/atom.xml"; | |
55 }; | |
56 refresh_interval = module:get_option_number("feed_pull_interval", 15) * 60; | 53 refresh_interval = module:get_option_number("feed_pull_interval", 15) * 60; |
57 local ok, nodes = pubsub.service:get_nodes(true); | 54 local ok, nodes = pubsub.service:get_nodes(true); |
58 if not ok then nodes = {}; end | 55 if not ok then nodes = {}; end |
59 local new_feed_list = {}; | 56 local new_feed_list = {}; |
60 for node, url in pairs(config) do | 57 for node, url in pairs(config) do |