fix: fix 500 error for followed tags api with limit=0

This commit is contained in:
TAKAHASHI Shuuji 2025-05-21 13:54:03 +09:00
parent a586f9ffaf
commit 04b56453c7
4 changed files with 4 additions and 4 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>