[mastodon-client] enforce limits for favorites and bookmarks

This commit is contained in:
Laura Hausmann 2023-07-09 23:53:15 +02:00
parent 3a9e917e2e
commit 0529576277
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -408,7 +408,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
})
}
if (options.max_id) {
@ -738,7 +738,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 {