Fixes calls to add lists

This commit is contained in:
Mouse Reeve
2021-12-30 11:58:27 -08:00
parent 4de406afe1
commit cc37d7404e
2 changed files with 39 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ class ListsStream(RedisStore):
def add_user_lists(self, viewer, user):
"""add a user's lists to another user's feed"""
# only add the lists that the viewer should be able to see
lists = models.List.filter(user=user).privacy_filter(viewer)
lists = models.List.privacy_filter(viewer).filter(user=user)
self.bulk_add_objects_to_store(lists, self.stream_id(viewer))
def remove_user_lists(self, viewer, user):