Merge pull request #484 from mouse-reeve/user-page-feed

Fixes bug that shows your own posts in every user page
This commit is contained in:
Mouse Reeve 2021-01-05 11:34:57 -08:00 committed by GitHub
commit 6261080836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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