fix profile posts and comments pagination

This commit is contained in:
keyan 2022-03-03 17:53:16 -06:00
parent 2ad2ff6ff5
commit a989140653
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ export default function UserComments (
<UserHeader user={user} /> <UserHeader user={user} />
<CommentsFlat <CommentsFlat
comments={comments} cursor={cursor} comments={comments} cursor={cursor}
variables={{ name: user.name }} includeParent noReply variables={{ name: user.name, sort: 'user' }} includeParent noReply
/> />
</Layout> </Layout>
) )

View File

@ -23,7 +23,7 @@ export default function UserPosts ({ data: { user, items: { items, cursor } } })
<div className='mt-2'> <div className='mt-2'>
<Items <Items
items={items} cursor={cursor} items={items} cursor={cursor}
variables={{ name: user.name }} variables={{ name: user.name, sort: 'user' }}
/> />
</div> </div>
</Layout> </Layout>