mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-29 11:30:39 +00:00
parent
e2bc751ee4
commit
733e0e19ac
1 changed files with 6 additions and 1 deletions
|
@ -131,7 +131,7 @@ def get_activity_feed(user, filter_level, model=models.Status):
|
|||
activities = model.objects
|
||||
|
||||
activities = activities.filter(
|
||||
deleted=False
|
||||
deleted=False,
|
||||
).order_by(
|
||||
'-published_date'
|
||||
)
|
||||
|
@ -160,6 +160,11 @@ def get_activity_feed(user, filter_level, model=models.Status):
|
|||
Q(user__in=following, privacy='followers') | Q(privacy='public')
|
||||
)
|
||||
|
||||
try:
|
||||
activities = activities.filter(~Q(boosters__in=activities))
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
return activities
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue