diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-07 00:36:31 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-07 00:36:31 +0200 |
commit | 632cc02666c73290a221dc51c89eb1caabd015cc (patch) | |
tree | 46f0a65caf5eeb68227bacdfdea8c59467e039fa /plugins/mod_vcard_legacy.lua | |
parent | 29f7b678108f544063a7f50e35841a638e36ca1c (diff) | |
download | prosody-632cc02666c73290a221dc51c89eb1caabd015cc.tar.gz prosody-632cc02666c73290a221dc51c89eb1caabd015cc.zip |
mod_vcard_legacy: Rename variable for consistency
The variable holding the PEP service was `pep_service`, except in the
XEP-0153 section.
Diffstat (limited to 'plugins/mod_vcard_legacy.lua')
-rw-r--r-- | plugins/mod_vcard_legacy.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_vcard_legacy.lua b/plugins/mod_vcard_legacy.lua index c1d402d3..302dc7f8 100644 --- a/plugins/mod_vcard_legacy.lua +++ b/plugins/mod_vcard_legacy.lua @@ -266,11 +266,11 @@ local function inject_xep153(event) 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 |