Skip to content

Commit

Permalink
feat: Add familiar followers, remove from followers
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Apr 3, 2022
1 parent bafc5df commit 2761173
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/repositories/account-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,4 +360,22 @@ export class AccountRepository
lookup(params: LookupAccountParams): Promise<Account> {
return this.http.get('/api/v1/accounts/lookup', params);
}

/**
* TODO: stub
* @returns Accounts
*/
@version({ since: '3.5.0' })
fetchFamiliarFollowers(): Promise<Account[]> {
return this.http.get(`/api/v1/accounts/familiar_followers`);
}

/**
* @param id ID of the account
* @returns N/A
*/
@version({ since: '3.5.0' })
removeFromFollowers(id: string): Promise<void> {
return this.http.post(`/api/v1/accounts/${id}/remove_from_followers`);
}
}

0 comments on commit 2761173

Please sign in to comment.