changeset 3273:78888f4ec7e3

mod_atom: Add node as portablecontacts preferredUsername This shows up in Atom feeds generated by GNU Social
author Kim Alvefur <zash@zash.se>
date Fri, 24 Aug 2018 22:59:24 +0200
parents 119e22ccd64a
children 2acfb45fd9ec
files mod_atom/mod_atom.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_atom/mod_atom.lua	Fri Aug 24 22:58:48 2018 +0200
+++ b/mod_atom/mod_atom.lua	Fri Aug 24 22:59:24 2018 +0200
@@ -23,6 +23,7 @@
 					:text_tag("generator", "Prosody", { uri = "xmpp:prosody.im", version = prosody.version })
 					:tag("author")
 						:text_tag("name", user)
+						:text_tag("preferredUsername", user, { xmlns = "http://portablecontacts.net/spec/1.0" });
 
 				feed:reset();