diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-03-21 22:52:00 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-03-27 19:51:42 -0400 |
| commit | 759e7f05c4624e2c197ef9fa4859c14cc2391bf6 (patch) | |
| tree | c93dc7d97095cccca85e834c1c27e91618e509af /packages/megalodon/src | |
| parent | improve performance of /v1/accounts/relationships (diff) | |
| download | sharkey-759e7f05c4624e2c197ef9fa4859c14cc2391bf6.tar.gz sharkey-759e7f05c4624e2c197ef9fa4859c14cc2391bf6.tar.bz2 sharkey-759e7f05c4624e2c197ef9fa4859c14cc2391bf6.zip | |
fix megalodon getRelationship function
Diffstat (limited to 'packages/megalodon/src')
| -rw-r--r-- | packages/megalodon/src/misskey.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/megalodon/src/misskey.ts b/packages/megalodon/src/misskey.ts index cf6adbb70d..78ebbae496 100644 --- a/packages/megalodon/src/misskey.ts +++ b/packages/megalodon/src/misskey.ts @@ -591,12 +591,12 @@ export default class Misskey implements MegalodonInterface { */ public async getRelationship(id: string): Promise<Response<Entity.Relationship>> { return this.client - .post<MisskeyAPI.Entity.Relation>('/api/users/relation', { + .post<MisskeyAPI.Entity.Relation[]>('/api/users/relation', { userId: id }) .then(res => { return Object.assign(res, { - data: MisskeyAPI.Converter.relation(res.data) + data: MisskeyAPI.Converter.relation(res.data[0]) }) }) } |