support min_id
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
parent
0b67adc5cb
commit
b82e52302f
1 changed files with 10 additions and 0 deletions
|
|
@ -394,6 +394,7 @@ export default class Misskey implements MegalodonInterface {
|
|||
limit?: number
|
||||
max_id?: string
|
||||
since_id?: string
|
||||
min_id?: string
|
||||
}
|
||||
): Promise<Response<Array<Entity.Account>>> {
|
||||
let params = {
|
||||
|
|
@ -414,6 +415,10 @@ export default class Misskey implements MegalodonInterface {
|
|||
params = Object.assign(params, {
|
||||
sinceId: options.since_id
|
||||
})
|
||||
} else if (options.min_id) {
|
||||
params = Object.assign(params, {
|
||||
sinceId: options.min_id
|
||||
})
|
||||
}
|
||||
}
|
||||
return this.client.post<Array<MisskeyAPI.Entity.Follower>>('/api/users/followers', params).then(res => {
|
||||
|
|
@ -432,6 +437,7 @@ export default class Misskey implements MegalodonInterface {
|
|||
limit?: number
|
||||
max_id?: string
|
||||
since_id?: string
|
||||
min_id?: string
|
||||
}
|
||||
): Promise<Response<Array<Entity.Account>>> {
|
||||
let params = {
|
||||
|
|
@ -452,6 +458,10 @@ export default class Misskey implements MegalodonInterface {
|
|||
params = Object.assign(params, {
|
||||
sinceId: options.since_id
|
||||
})
|
||||
} else if (options.min_id) {
|
||||
params = Object.assign(params, {
|
||||
sinceId: options.min_id
|
||||
})
|
||||
}
|
||||
}
|
||||
return this.client.post<Array<MisskeyAPI.Entity.Following>>('/api/users/following', params).then(res => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue