Fix swapped paging args

This commit is contained in:
Jason McBrayer 2018-07-23 13:37:24 -04:00
parent e86857f2cb
commit c729956fab
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ def user(request, username, prev=None, next=None):
user_dict = mastodon.account_search(username)[0]
except IndexError:
raise Http404("The user %s could not be found." % username)
data = mastodon.account_statuses(user_dict.id, max_id=prev, since_id=next)
data = mastodon.account_statuses(user_dict.id, max_id=next, since_id=prev)
relationship = mastodon.account_relationships(user_dict.id)[0]
try:
prev = data[0]._pagination_prev