forked from mirrors/bookwyrm
Fixes followers filter for non-status objs
This commit is contained in:
parent
cc650e235b
commit
1072381b7d
1 changed files with 4 additions and 1 deletions
|
@ -69,7 +69,10 @@ class BookWyrmModel(models.Model):
|
|||
# you can see the followers only posts of people you follow
|
||||
if self.privacy == "followers" and (
|
||||
self.user.followers.filter(id=viewer.id).first()
|
||||
or self.mention_users.filter(id=viewer.id)
|
||||
or (
|
||||
hasattr(self, "mention_users")
|
||||
and self.mention_users.filter(id=viewer.id)
|
||||
)
|
||||
):
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in a new issue