aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-07 01:04:53 +0200
committerKim Alvefur <zash@zash.se>2018-09-07 01:04:53 +0200
commit5823af024e28c22848fca1b0458cf9d06fcd650f (patch)
tree75c7df9f24ca01cd2fee38cd4ed1ed40d3f7f250 /plugins
parent36d87d70cc59b0d930cac138386b9eb34cf72169 (diff)
downloadprosody-5823af024e28c22848fca1b0458cf9d06fcd650f.tar.gz
prosody-5823af024e28c22848fca1b0458cf9d06fcd650f.zip
mod_vcard_legacy: Handle avatar without vcard4
Since vcards are just avatar containers in many modern clients, aborting in case of no vcard4 data is not optimal. The upgrade mechanism needs further tweaks.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_vcard_legacy.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/mod_vcard_legacy.lua b/plugins/mod_vcard_legacy.lua
index 302dc7f8..d6383114 100644
--- a/plugins/mod_vcard_legacy.lua
+++ b/plugins/mod_vcard_legacy.lua
@@ -107,10 +107,6 @@ module:hook("iq-get/bare/vcard-temp:vCard", function (event)
vcard_temp:up();
end
end
- else
- local legacy_vcard = st.deserialize(vcards:get(jid_split(stanza.attr.to) or origin.username));
- origin.send(st.reply(stanza):add_child(legacy_vcard or vcard_temp));
- return true;
end
local meta_ok, avatar_meta = pep_service:get_items("urn:xmpp:avatar:metadata", stanza.attr.from);