changeset 342:28c9579901d3

privilege: fixed addition of owner to publishers in onPresence
author Goffi <goffi@goffi.org>
date Sun, 20 Aug 2017 12:35:04 +0200
parents b49f75a26156
children ff8aff4c9b79
files sat_pubsub/privilege.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_pubsub/privilege.py	Sun Aug 20 11:56:04 2017 +0200
+++ b/sat_pubsub/privilege.py	Sun Aug 20 12:35:04 2017 +0200
@@ -253,7 +253,7 @@
             if not nodes:
                 return
             # publishers are entities which have granted presence access to our user + user itself
-            publishers = self.presence_map.get(from_jid_bare, ()) + (from_jid_bare,)
+            publishers = tuple(self.presence_map.get(from_jid_bare, ())) + (from_jid_bare,)
 
             last_items = yield self._backend.storage.getLastItems(publishers, nodes, ('open',), ('open',), True)
             # we send message with last item, as required by https://xmpp.org/extensions/xep-0163.html#notify-last