# HG changeset patch # User Kim Alvefur # Date 1535143933 -7200 # Node ID 25b4cad8fee46175d0adad87ed9868eeede1a0b5 # Parent 2acfb45fd9ec38736d951d0515fc9523b8185b4f mod_atom: Include User Nickname (if configured to be public) diff -r 2acfb45fd9ec -r 25b4cad8fee4 mod_atom/mod_atom.lua --- a/mod_atom/mod_atom.lua Fri Aug 24 23:00:08 2018 +0200 +++ b/mod_atom/mod_atom.lua Fri Aug 24 22:52:13 2018 +0200 @@ -26,6 +26,10 @@ :tag("author") :text_tag("name", user) :text_tag("preferredUsername", user, { xmlns = "http://portablecontacts.net/spec/1.0" }); + local ok, _, nick = pubsub_service:get_last_item("http://jabber.org/protocol/nick", actor); + if ok and nick then + feed:text_tag("displayName", nick.tags[1][1], { xmlns = "http://portablecontacts.net/spec/1.0" }); + end feed:reset();