Mercurial > prosody-modules
comparison mod_pubsub_googlecode/mod_pubsub_googlecode.lua @ 948:79b4a1db7a57
mod_pubsub_googlecode: Remove quotes around 'project'... it's a variable :)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 03 Apr 2013 18:27:55 +0100 |
| parents | 2c5430ff1c11 |
| children | ef54ae817689 |
comparison
equal
deleted
inserted
replaced
| 947:c91cac3b823f | 948:79b4a1db7a57 |
|---|---|
| 49 end | 49 end |
| 50 rev.message = "wiki ("..(what or "unknown page").."): "..rev.message; | 50 rev.message = "wiki ("..(what or "unknown page").."): "..rev.message; |
| 51 end | 51 end |
| 52 | 52 |
| 53 local ok, err = pubsub_service:publish(node, true, project, | 53 local ok, err = pubsub_service:publish(node, true, project, |
| 54 st.stanza("item", { xmlns = "http://jabber.org/protocol/pubsub", id = "project" }) | 54 st.stanza("item", { xmlns = "http://jabber.org/protocol/pubsub", id = project }) |
| 55 :tag("entry", { xmlns = "http://www.w3.org/2005/Atom" }) | 55 :tag("entry", { xmlns = "http://www.w3.org/2005/Atom" }) |
| 56 :tag("id"):text(tostring(rev.revision)):up() | 56 :tag("id"):text(tostring(rev.revision)):up() |
| 57 :tag("title"):text(rev.message):up() | 57 :tag("title"):text(rev.message):up() |
| 58 :tag("link", { rel = "alternate", href = rev.url }):up() | 58 :tag("link", { rel = "alternate", href = rev.url }):up() |
| 59 :tag("published"):text(datetime(rev.timestamp)):up() | 59 :tag("published"):text(datetime(rev.timestamp)):up() |
