Fixes boosts removing statuses from feeds

This commit is contained in:
Mouse Reeve
2021-08-23 07:04:59 -07:00
parent e76163ffae
commit f284eebece
2 changed files with 5 additions and 3 deletions

View File

@ -33,8 +33,9 @@ class RedisStore(ABC):
# and go!
return pipeline.execute()
def remove_object_from_related_stores(self, obj):
def remove_object_from_related_stores(self, obj, stores=None):
"""remove an object from all stores"""
stores = stores or self.get_stores_for_object(obj)
pipeline = r.pipeline()
for store in self.get_stores_for_object(obj):
pipeline.zrem(store, -1, obj.id)