Don't show boost and original status in timeline

Fixes #381
This commit is contained in:
Mouse Reeve 2020-12-11 17:39:17 -08:00
parent e2bc751ee4
commit 733e0e19ac

View file

@ -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