mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
fix megalodon getRelationship function
This commit is contained in:
parent
de26ffd60b
commit
759e7f05c4
1 changed files with 2 additions and 2 deletions
|
@ -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])
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue