core (disco): use of “profile” instead of “profile_key” in several disco methods
This commit is contained in:
parent
083f426b24
commit
341143445b
1 changed files with 50 additions and 48 deletions
|
|
@ -96,7 +96,7 @@ class XEP_0060(object):
|
|||
@defer.inlineCallbacks
|
||||
def profileConnected(self, profile):
|
||||
client = self.host.getClient(profile)
|
||||
pubsub_services = yield self.host.findServiceEntities("pubsub", "service", profile_key = profile)
|
||||
pubsub_services = yield self.host.findServiceEntities("pubsub", "service", profile=profile)
|
||||
if pubsub_services:
|
||||
# we use one of the found services as our default pubsub service
|
||||
client.pubsub_service = pubsub_services.pop()
|
||||
|
|
|
|||
Loading…
Reference in a new issue