changeset 2314:01f0a954d506

plugin XEP-0060: fixed service in metadata for PEP
author Goffi <goffi@goffi.org>
date Sat, 08 Jul 2017 21:43:36 +0200
parents 6ff5212997c7
children 8d9bd5d77336
files src/plugins/plugin_xep_0060.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0060.py	Fri Jul 07 22:33:55 2017 +0200
+++ b/src/plugins/plugin_xep_0060.py	Sat Jul 08 21:43:36 2017 +0200
@@ -381,7 +381,7 @@
 
         def addMetadata(result):
             items, rsm_response = result
-            service_jid = service if service else jid.JID(client.jid.host)
+            service_jid = service if service else client.jid.userhostJID()
             metadata = {'service': service_jid,
                         'node': node,
                         'uri': self.getNodeURI(service_jid, node),