forked from mirrors/bookwyrm
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:
commit
6261080836
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue