2
0
mirror of https://github.com/jfmcbrayer/brutaldon synced 2024-12-24 22:40:45 +01:00

Actually use paging args in user timeline

This commit is contained in:
Jason McBrayer 2018-07-23 13:35:38 -04:00
parent e794876d14
commit e86857f2cb

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)
data = mastodon.account_statuses(user_dict.id, max_id=prev, since_id=next)
relationship = mastodon.account_relationships(user_dict.id)[0]
try:
prev = data[0]._pagination_prev