mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 00:26:33 +00:00
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
|
# 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)
|
||||||
|
|
Loading…
Reference in a new issue