Add following argument for search account

This commit is contained in:
AkiraFukushima 2020-03-14 16:38:43 +09:00
parent 4ebf910b46
commit 3f5cb4d025
3 changed files with 6 additions and 2 deletions

View file

@ -473,11 +473,12 @@ export default class Mastodon implements MegalodonInterface {
public async searchAccount(
q: string,
following: boolean,
limit?: number | null,
max_id?: string | null,
since_id?: string | null
): Promise<Response<Array<Entity.Account>>> {
let params = { q: q }
let params = { q: q, following: following }
if (max_id) {
params = Object.assign(params, {
max_id: max_id

View file

@ -316,6 +316,7 @@ export interface MegalodonInterface {
*/
searchAccount(
q: string,
following: boolean,
limit?: number | null,
max_id?: string | null,
since_id?: string | null

View file

@ -527,12 +527,14 @@ export default class Misskey implements MegalodonInterface {
*/
public async searchAccount(
q: string,
_following: boolean,
limit?: number | null,
_max_id?: string | null,
_since_id?: string | null
): Promise<Response<Array<Entity.Account>>> {
let params = {
query: q
query: q,
detail: true
}
if (limit) {
params = Object.assign(params, {