# HG changeset patch # User Goffi # Date 1367170198 -7200 # Node ID e5b83fbb02194bdcda1b2ee2fa441f7496be73c4 # Parent 30988781f30d2948da02de0274c70aa6b6881e5d removed notifications when no items are allowed for an entity diff -r 30988781f30d -r e5b83fbb0219 sat_pubsub/backend.py --- a/sat_pubsub/backend.py Sun Apr 28 19:29:13 2013 +0200 +++ b/sat_pubsub/backend.py Sun Apr 28 19:29:58 2013 +0200 @@ -760,7 +760,8 @@ else: #unknown access_model raise NotImplementedError - notifications_filtered.append((subscriber, subscriptions, allowed_items)) + if allowed_items: + notifications_filtered.append((subscriber, subscriptions, allowed_items)) #we notify the owner #FIXME: check if this comply with XEP-0060 (option needed ?)