Fixes bug that shows your own posts in every user page

This commit is contained in:
Mouse Reeve 2021-01-05 11:16:24 -08:00
parent 11212401a0
commit 3d6f113543

View file

@ -467,9 +467,9 @@ def user_page(request, username):
# user's posts # user's posts
activities = get_activity_feed( activities = get_activity_feed(
user, request.user,
['public', 'unlisted', 'followers'], ['public', 'unlisted', 'followers'],
queryset=models.Status.objects.filter(user=request.user) queryset=models.Status.objects.filter(user=user)
) )
paginated = Paginator(activities, PAGE_LENGTH) paginated = Paginator(activities, PAGE_LENGTH)
activity_page = paginated.page(page) activity_page = paginated.page(page)