Mercurial > prosody-modules
comparison mod_pubsub_feed/mod_pubsub_feed.lua @ 633:0d3174d5a1cc
mod_pubsub_feed: Fix typos
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 04 Apr 2012 00:37:42 +0200 |
| parents | db5702bb9e41 |
| children | 343b115ebbea |
comparison
equal
deleted
inserted
replaced
| 632:dcb8e7d2c711 | 633:0d3174d5a1cc |
|---|---|
| 39 local urlencode = http.urlencode; | 39 local urlencode = http.urlencode; |
| 40 | 40 |
| 41 local feed_list = {}; | 41 local feed_list = {}; |
| 42 local refresh_interval; | 42 local refresh_interval; |
| 43 | 43 |
| 44 -- Dynamicaly reloadable config. | 44 -- Dynamically reloadable config. |
| 45 local function update_config() | 45 local function update_config() |
| 46 local config = module:get_option("feeds") or { | 46 local config = module:get_option("feeds") or { |
| 47 planet_jabber = "http://planet.jabber.org/atom.xml"; | 47 planet_jabber = "http://planet.jabber.org/atom.xml"; |
| 48 prosody_blog = "http://blog.prosody.im/feed/atom.xml"; | 48 prosody_blog = "http://blog.prosody.im/feed/atom.xml"; |
| 49 }; | 49 }; |
| 225 | 225 |
| 226 --FIXME The subscription states and related stuff | 226 --FIXME The subscription states and related stuff |
| 227 feed.subscription = "subscribe"; | 227 feed.subscription = "subscribe"; |
| 228 http.request(feed.hub, { body = body }, function(data, code, req) | 228 http.request(feed.hub, { body = body }, function(data, code, req) |
| 229 local code = tostring(code); | 229 local code = tostring(code); |
| 230 module:log("debug", "subscription to %s submitted, staus %s", feed.node, code); | 230 module:log("debug", "subscription to %s submitted, status %s", feed.node, code); |
| 231 end); | 231 end); |
| 232 end | 232 end |
| 233 | 233 |
| 234 function handle_http_request(method, body, request) | 234 function handle_http_request(method, body, request) |
| 235 if module_unloaded then | 235 if module_unloaded then |
