Mercurial > libervia-backend
diff src/plugins/plugin_xep_0163.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 | 33c8c4973743 |
children | 972e33507609 |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0163.py Tue Jun 27 17:02:10 2017 +0200 +++ b/src/plugins/plugin_xep_0163.py Tue Jun 27 19:38:20 2017 +0200 @@ -98,9 +98,9 @@ @param data: domish.Element to use as payload @param profile: profile which send the data """ - + client = self.host.getClient(profile) item = pubsub.Item(payload=data) - return self.host.plugins["XEP-0060"].publish(None, node, [item], profile_key=profile) + return self.host.plugins["XEP-0060"].publish(client, None, node, [item]) def PEPSend(self, event_type, data, profile_key=C.PROF_KEY_NONE): """Send personal event after checking the data is alright