Fixes privacy filters for followers-only replies

This commit is contained in:
Mouse Reeve 2021-10-14 16:26:28 -07:00
parent c1287f800e
commit cc650e235b

View file

@ -67,9 +67,9 @@ class BookWyrmModel(models.Model):
return return
# you can see the followers only posts of people you follow # you can see the followers only posts of people you follow
if ( if self.privacy == "followers" and (
self.privacy == "followers" self.user.followers.filter(id=viewer.id).first()
and self.user.followers.filter(id=viewer.id).first() or self.mention_users.filter(id=viewer.id)
): ):
return return