Software /
code /
prosody-modules
Comparison
mod_pubsub_feeds/mod_pubsub_feeds.lua @ 5575:372e59bd45d7
mod_pubsub_feeds: Remove comment, this text is in the README
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 25 Jun 2023 16:48:21 +0200 |
parent | 5574:10b7118bbd8f |
child | 5576:c729a38f21b1 |
comparison
equal
deleted
inserted
replaced
5574:10b7118bbd8f | 5575:372e59bd45d7 |
---|---|
1 -- Fetches Atom feeds and publishes to PubSub nodes | 1 -- Fetches Atom feeds and publishes to PubSub nodes |
2 -- | |
3 -- Config: | |
4 -- Component "pubsub.example.com" "pubsub" | |
5 -- modules_enabled = { | |
6 -- "pubsub_feeds"; | |
7 -- } | |
8 -- feeds = { -- node -> url | |
9 -- prosody_blog = "http://blog.prosody.im/feed/atom.xml"; | |
10 -- } | |
11 -- feed_pull_interval = 20 -- minutes | |
12 -- | |
13 -- Reference | |
14 -- http://pubsubhubbub.googlecode.com/svn/trunk/pubsubhubbub-core-0.4.html | |
15 | 2 |
16 local pubsub = module:depends"pubsub"; | 3 local pubsub = module:depends"pubsub"; |
17 | 4 |
18 local time = os.time; | 5 local time = os.time; |
19 local dt_parse, dt_datetime = require "util.datetime".parse, require "util.datetime".datetime; | 6 local dt_parse, dt_datetime = require "util.datetime".parse, require "util.datetime".datetime; |