# HG changeset patch # User Goffi # Date 1503225304 -7200 # Node ID 28c9579901d3d7c2527dfdb8b158298949ffaf17 # Parent b49f75a26156390fc8e2efe64abf7e8872140284 privilege: fixed addition of owner to publishers in onPresence diff -r b49f75a26156 -r 28c9579901d3 sat_pubsub/privilege.py --- 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