Merge pull request #268 from h3poteto/fix/following_request

Fix follow request api for misskey
This commit is contained in:
AkiraFukushima 2020-03-18 23:09:12 +09:00 committed by GitHub
commit 9d5a5a4e1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -831,7 +831,7 @@ export default class Misskey implements MegalodonInterface {
* POST /api/following/requests/list
*/
public async getFollowRequests(_limit?: number): Promise<Response<Array<Entity.Account>>> {
return this.client.post<Array<MisskeyAPI.Entity.FollowRequest>>('/api/folllowing/requests/list').then(res => {
return this.client.post<Array<MisskeyAPI.Entity.FollowRequest>>('/api/following/requests/list').then(res => {
return Object.assign(res, {
data: res.data.map(r => MisskeyAPI.Converter.user(r.follower))
})