diff src/plugins/plugin_misc_groupblog.py @ 742:03744d9ebc13

plugin XEP-0033: implementation of the addressing feature: - frontends pass the recipients in the extra parameter of sendMessage - backend checks if the target server supports the feature (this is not done yet by prosody plugin) - features and identities are cached per profile and server - messages are duplicated in history for now (TODO: redesign the database) - echos signals are also duplicated to the sender (FIXME)
author souliane <souliane@mailoo.org>
date Wed, 11 Dec 2013 17:16:53 +0100
parents 80c1072390f3
children 812dc38c0094
line wrap: on
line diff
--- a/src/plugins/plugin_misc_groupblog.py	Fri Dec 13 05:35:24 2013 +0100
+++ b/src/plugins/plugin_misc_groupblog.py	Wed Dec 11 17:16:53 2013 +0100
@@ -140,7 +140,7 @@
             #we don't have any pubsub server featuring item access yet
             client.item_access_pubsub = None
             client._item_access_pubsub_pending = defer.Deferred()
-            for entity in self.host.memory.getServerServiceEntities("pubsub", "service", profile):
+            for entity in self.host.memory.getServerServiceEntities("pubsub", "service", profile=profile):
                 _disco = yield client.disco.requestInfo(entity)
                 #if set([NS_PUBSUB_ITEM_ACCESS, NS_PUBSUB_AUTO_CREATE, NS_PUBSUB_CREATOR_JID_CHECK]).issubset(_disco.features):
                 if set([NS_PUBSUB_AUTO_CREATE, NS_PUBSUB_CREATOR_JID_CHECK]).issubset(_disco.features):