diff src/plugins/plugin_xep_0277.py @ 2272:b5befe7722d3

plugin XEP-0060: added sendItem and psItemSend bridge method as a way to send directly raw XML for an item + use client instead of profile_key in publish + renamed psItemGet to psItemsGet
author Goffi <goffi@goffi.org>
date Tue, 27 Jun 2017 19:38:20 +0200
parents a8eaaac4d80f
children 330f8d4e2ad4
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py	Tue Jun 27 17:02:10 2017 +0200
+++ b/src/plugins/plugin_xep_0277.py	Tue Jun 27 19:38:20 2017 +0200
@@ -579,7 +579,7 @@
         except error.StanzaError:
             log.warning(u"Can't create comments node for item {}".format(item_id))
         item = yield self.data2entry(data, item_id, client.profile)
-        ret = yield self._p.publish(service, node, [item], profile_key=client.profile)
+        ret = yield self._p.publish(client, service, node, [item])
         defer.returnValue(ret)
 
     ## retract ##