Merge pull request #865 from mouse-reeve/zrem

Uses correct redis remove activity type
This commit is contained in:
Mouse Reeve 2021-04-03 15:34:52 -07:00 committed by GitHub
commit 7b3c85f351
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ class ActivityStream(ABC):
""" remove a status from all feeds """
pipeline = r.pipeline()
for user in self.stream_users(status):
pipeline.lrem(self.stream_id(user), -1, status.id)
pipeline.zrem(self.stream_id(user), -1, status.id)
pipeline.execute()
def add_user_statuses(self, viewer, user):