I’m trying to modify mod_muc_size to include the participant avatar.
Right here:
for _, pr in occupant:each_session() do
local nick = pr:get_child_text("nick", "http://jabber.org/protocol/nick") or "";
local email = pr:get_child_text("email") or "";
local avatar = pr:get_child_text("avatar") or "";
occupants_json:push({
jid = tostring(occupant.nick),
email = tostring(email),
avatar = tostring(avatar),
display_name = tostring(nick)});
end
I have looked at pr:children(), and there isn’t any info about the avatar. What is the correct way to get it?