mirror of
https://git.boykissers.com/pawkey/pawkey-sk.git
synced 2025-12-20 12:14:18 +00:00
fix megalodon getRelationship function
This commit is contained in:
@@ -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])
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user