Ignore bookmark updates from other jids

Because we use +notify to subscribe to the bookmarks node, we get notifications from contacts that have an open access bookmarks node
This commit is contained in:
Philipp Hörist 2018-12-21 19:10:18 +01:00
parent 4503f466d6
commit 0e6011c088
1 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,10 @@ class Bookmarks(AbstractPEPModule):
log.info('Ignore update, pubsub request in progress')
return
if not self._con.get_own_jid().bareMatch(jid):
log.warning('%s has an open access bookmarks node', jid)
return
if not self._pubsub_support() or not self.conversion:
return