Cleans up review logic

This commit is contained in:
Mouse Reeve
2020-02-14 21:00:11 -08:00
parent 4aa4898484
commit cc1f222431
2 changed files with 39 additions and 24 deletions

View File

@ -36,10 +36,11 @@ def home(request):
following = models.User.objects.filter(
Q(followers=request.user) | Q(id=request.user.id)
)
# TODO: handle post privacy
# TODO: this is fundamentally not how the feed should work I think? it
# should do something smart with inboxes. (in this implementation it would
# show DMs meant for other local users)
activities = models.Activity.objects.filter(
user__in=following,
).select_subclasses().order_by(
'-created_date'
)[:10]