[mastodon-client] enforce limits for /following and /followers

This commit is contained in:
Laura Hausmann 2023-07-09 00:20:14 +02:00
parent a9ae14431d
commit e47e905ce9
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -460,7 +460,7 @@ export default class Misskey implements MegalodonInterface {
if (options) {
if (options.limit) {
params = Object.assign(params, {
limit: options.limit
limit: options.limit <= 100 ? options.limit : 100
})
}
else {
@ -498,7 +498,7 @@ export default class Misskey implements MegalodonInterface {
if (options) {
if (options.limit) {
params = Object.assign(params, {
limit: options.limit
limit: options.limit <= 100 ? options.limit : 100
})
}
}