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} />
<CommentsFlat
comments={comments} cursor={cursor}
variables={{ name: user.name }} includeParent noReply
variables={{ name: user.name, sort: 'user' }} includeParent noReply
/>
</Layout>
)

View File

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