fix: megalodon posting to incorrect url

This commit is contained in:
Mar0xy 2023-09-25 21:30:50 +02:00
parent b569ac911e
commit c18c823c95
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828

View File

@ -256,7 +256,7 @@ export default class Misskey implements MegalodonInterface {
} }
} }
} }
return this.client.post<MisskeyAPI.Entity.UserDetail>('/api/i', params).then(res => { return this.client.post<MisskeyAPI.Entity.UserDetail>('/api/i/update', params).then(res => {
return Object.assign(res, { return Object.assign(res, {
data: MisskeyAPI.Converter.userDetail(res.data) data: MisskeyAPI.Converter.userDetail(res.data)
}) })