mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-23 01:51:08 +00:00
Don't erase entire stream when new status is added
omg
This commit is contained in:
parent
e3abc96266
commit
12f6c2abb2
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ class ActivityStream(ABC):
|
||||||
Q(id=status.user.id) # if the user is the post's author
|
Q(id=status.user.id) # if the user is the post's author
|
||||||
| Q(following=status.user) # if the user is following the author
|
| Q(following=status.user) # if the user is following the author
|
||||||
)
|
)
|
||||||
return audience
|
return audience.distinct()
|
||||||
|
|
||||||
def stream_statuses(self, user): # pylint: disable=no-self-use
|
def stream_statuses(self, user): # pylint: disable=no-self-use
|
||||||
""" given a user, what statuses should they see on this stream """
|
""" given a user, what statuses should they see on this stream """
|
||||||
|
@ -131,7 +131,7 @@ class HomeStream(ActivityStream):
|
||||||
return audience.filter(
|
return audience.filter(
|
||||||
Q(id=status.user.id) # if the user is the post's author
|
Q(id=status.user.id) # if the user is the post's author
|
||||||
| Q(following=status.user) # if the user is following the author
|
| Q(following=status.user) # if the user is following the author
|
||||||
)
|
).distinct()
|
||||||
|
|
||||||
def stream_statuses(self, user):
|
def stream_statuses(self, user):
|
||||||
return privacy_filter(
|
return privacy_filter(
|
||||||
|
|
Loading…
Reference in a new issue