Filter out deleted statuses in feed

This commit is contained in:
Mouse Reeve 2020-10-08 12:35:27 -07:00
parent 704e1092c4
commit 48df06aea7

View file

@ -117,7 +117,7 @@ def get_activity_feed(user, filter_level, model=models.Status):
activities = model activities = model
if hasattr(model, 'objects'): if hasattr(model, 'objects'):
activities = model.objects activities = model.objects.filter(deleted=False)
activities = activities.order_by( activities = activities.order_by(
'-created_date' '-created_date'