cannot get emoji
This commit is contained in:
parent
055e8827bd
commit
e5f85241f2
|
@ -2101,7 +2101,7 @@ export default class Misskey implements MegalodonInterface {
|
|||
public async getInstanceCustomEmojis(): Promise<Response<Array<Entity.Emoji>>> {
|
||||
return this.client
|
||||
.post<MisskeyAPI.Entity.Emoji[]>('/api/emojis')
|
||||
.then(res => ({ ...res, data: res.data.map(e => MisskeyAPI.Converter.emoji(e)) }))
|
||||
.then(res => ({ ...res, data: res.data.emojis.map(e => MisskeyAPI.Converter.emoji(e)) }))
|
||||
}
|
||||
|
||||
// ======================================
|
||||
|
|
Loading…
Reference in a new issue