fix: fix 500 error for followed tags api with limit=0
This commit is contained in:
parent
a586f9ffaf
commit
04b56453c7
4 changed files with 4 additions and 4 deletions
|
|
@ -13,7 +13,7 @@ function reorderAndFilter(items: mastodon.v1.Status[]) {
|
|||
|
||||
let followedTags: mastodon.v1.Tag[] | undefined
|
||||
if (currentUser.value !== undefined) {
|
||||
followedTags = (await useMasto().client.value.v1.followedTags.list({ limit: 0 }))
|
||||
followedTags = await useMasto().client.value.v1.followedTags.list({ limit: 200 })
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ function reorderAndFilter(items: mastodon.v1.Status[]) {
|
|||
|
||||
let followedTags: mastodon.v1.Tag[] | undefined
|
||||
if (currentUser.value !== undefined) {
|
||||
followedTags = (await useMasto().client.value.v1.followedTags.list({ limit: 0 }))
|
||||
followedTags = (await useMasto().client.value.v1.followedTags.list({ limit: 200 }))
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ function reorderAndFilter(items: mastodon.v1.Status[]) {
|
|||
|
||||
let followedTags: mastodon.v1.Tag[] | undefined
|
||||
if (currentUser.value !== undefined) {
|
||||
followedTags = (await useMasto().client.value.v1.followedTags.list({ limit: 0 }))
|
||||
followedTags = (await useMasto().client.value.v1.followedTags.list({ limit: 200 }))
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ onReactivated(() => {
|
|||
|
||||
let followedTags: mastodon.v1.Tag[] | undefined
|
||||
if (currentUser.value !== undefined) {
|
||||
followedTags = (await useMasto().client.value.v1.followedTags.list({ limit: 0 }))
|
||||
followedTags = (await useMasto().client.value.v1.followedTags.list({ limit: 200 }))
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue