Adding Fullname field.

This commit is contained in:
John Livingston 2022-01-05 19:23:20 +01:00
parent 0ba58ac284
commit eeaba121de
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC

View File

@ -66,6 +66,8 @@ module:hook("iq-get/bare/vcard-temp:vCard", function (event)
end
local vcard_temp = st.stanza("vCard", { xmlns = "vcard-temp" });
vcard_temp:text_tag("FN", ret.displayName);
vcard_temp:text_tag("NICKNAME", ret.displayName);
if ret.avatar and ret.avatar.path then