mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 13:27:31 -07:00
[mastodon-client] enforce limits for favorites and bookmarks
This commit is contained in:
parent
3a9e917e2e
commit
0529576277
1 changed files with 2 additions and 2 deletions
|
@ -408,7 +408,7 @@ export default class Misskey implements MegalodonInterface {
|
||||||
if (options) {
|
if (options) {
|
||||||
if (options.limit) {
|
if (options.limit) {
|
||||||
params = Object.assign(params, {
|
params = Object.assign(params, {
|
||||||
limit: options.limit
|
limit: options.limit <= 100 ? options.limit : 100
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (options.max_id) {
|
if (options.max_id) {
|
||||||
|
@ -738,7 +738,7 @@ export default class Misskey implements MegalodonInterface {
|
||||||
if (options) {
|
if (options) {
|
||||||
if (options.limit) {
|
if (options.limit) {
|
||||||
params = Object.assign(params, {
|
params = Object.assign(params, {
|
||||||
limit: options.limit
|
limit: options.limit <= 100 ? options.limit : 100
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue