comparison mod_pubsub_github/mod_pubsub_github.lua @ 3518:95c1c3e057cf

mod_pubsub_github: Fix publish date
author Kim Alvefur <zash@zash.se>
date Sun, 31 Mar 2019 18:14:59 +0200
parents ea1edd7cfb01
children ac623080324a
comparison
equal deleted inserted replaced
3517:ea1edd7cfb01 3518:95c1c3e057cf
49 st.stanza("item", { id = commit.id, xmlns = "http://jabber.org/protocol/pubsub" }) 49 st.stanza("item", { id = commit.id, xmlns = "http://jabber.org/protocol/pubsub" })
50 :tag("entry", { xmlns = "http://www.w3.org/2005/Atom" }) 50 :tag("entry", { xmlns = "http://www.w3.org/2005/Atom" })
51 :tag("id"):text(commit.id):up() 51 :tag("id"):text(commit.id):up()
52 :tag("title"):text(commit.message):up() 52 :tag("title"):text(commit.message):up()
53 :tag("link", { rel = "alternate", href = commit.url }):up() 53 :tag("link", { rel = "alternate", href = commit.url }):up()
54 :tag("published"):text(commit.timestamp):up() 54 :tag("published"):text(commit.author.date):up()
55 :tag("author") 55 :tag("author")
56 :tag("name"):text(commit.author.name):up() 56 :tag("name"):text(commit.author.name):up()
57 :tag("email"):text(commit.author.email):up() 57 :tag("email"):text(commit.author.email):up()
58 :up() 58 :up()
59 ); 59 );