Add following argument for search account
This commit is contained in:
parent
4ebf910b46
commit
3f5cb4d025
|
@ -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
|
||||
|
|
|
@ -316,6 +316,7 @@ export interface MegalodonInterface {
|
|||
*/
|
||||
searchAccount(
|
||||
q: string,
|
||||
following: boolean,
|
||||
limit?: number | null,
|
||||
max_id?: string | null,
|
||||
since_id?: string | null
|
||||
|
|
|
@ -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, {
|
||||
|
|
Loading…
Reference in a new issue