Mercurial > prosody-modules
comparison mod_pubsub_feeds/feeds.lib.lua @ 2133:85762420a2c0
mod_pubsub_feeds: Use correct loop variable
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 20 Mar 2016 12:37:56 +0100 |
| parents | b149ea428b81 |
| children | 649f733aa3dc |
comparison
equal
deleted
inserted
replaced
| 2132:b149ea428b81 | 2133:85762420a2c0 |
|---|---|
| 64 local feed = st.stanza("feed", { xmlns = "http://www.w3.org/2005/Atom" }); | 64 local feed = st.stanza("feed", { xmlns = "http://www.w3.org/2005/Atom" }); |
| 65 local channel = rss_feed:get_child("channel"); | 65 local channel = rss_feed:get_child("channel"); |
| 66 -- TODO channel properties | 66 -- TODO channel properties |
| 67 feed:tag("entry"); | 67 feed:tag("entry"); |
| 68 for item in channel:childtags("item") do | 68 for item in channel:childtags("item") do |
| 69 for tag in rss_item:childtags() do | 69 for tag in item:childtags() do |
| 70 local translator = rss2atom[tag.name]; | 70 local translator = rss2atom[tag.name]; |
| 71 if translator then | 71 if translator then |
| 72 translator(feed, tag); | 72 translator(feed, tag); |
| 73 end | 73 end |
| 74 end | 74 end |
