# HG changeset patch # User Kim Alvefur # Date 1536273391 -7200 # Node ID b024fae6919e05370850bef42fdd7878ea5e9b91 # Parent 6097dc7d48473d9dc146f1c21122021a7fe615a2 mod_vcard_legacy: Rename variable for consistency The variable holding the PEP service was `pep_service`, except in the XEP-0153 section. diff -r 6097dc7d4847 -r b024fae6919e plugins/mod_vcard_legacy.lua --- a/plugins/mod_vcard_legacy.lua Thu Sep 06 23:51:03 2018 +0200 +++ b/plugins/mod_vcard_legacy.lua Fri Sep 07 00:36:31 2018 +0200 @@ -266,11 +266,11 @@ local origin, stanza = event.origin, event.stanza; local username = origin.username; if not username then return end - local pep = mod_pep.get_pep_service(username); + local pep_service = mod_pep.get_pep_service(username); stanza:remove_children("x", "vcard-temp:x:update"); local x_update = st.stanza("x", { xmlns = "vcard-temp:x:update" }); - local ok, avatar_hash = pep:get_last_item("urn:xmpp:avatar:metadata", true); + local ok, avatar_hash = pep_service:get_last_item("urn:xmpp:avatar:metadata", true); if ok and avatar_hash then x_update:text_tag("photo", avatar_hash); end