mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
[mastodon-client] populate user data for favorited_by and reblogged_by
This commit is contained in:
parent
a94bf84f04
commit
90e1eaa62d
1 changed files with 4 additions and 4 deletions
|
@ -1481,9 +1481,9 @@ export default class Misskey implements MegalodonInterface {
|
||||||
.post<Array<MisskeyAPI.Entity.Note>>('/api/notes/renotes', {
|
.post<Array<MisskeyAPI.Entity.Note>>('/api/notes/renotes', {
|
||||||
noteId: id
|
noteId: id
|
||||||
})
|
})
|
||||||
.then(res => ({
|
.then(async res => ({
|
||||||
...res,
|
...res,
|
||||||
data: res.data.map(n => this.converter.user(n.user))
|
data: (await Promise.all(res.data.map(n => this.getAccount(n.user.id)))).map(p => p.data)
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1492,9 +1492,9 @@ export default class Misskey implements MegalodonInterface {
|
||||||
.post<Array<MisskeyAPI.Entity.Reaction>>('/api/notes/reactions', {
|
.post<Array<MisskeyAPI.Entity.Reaction>>('/api/notes/reactions', {
|
||||||
noteId: id
|
noteId: id
|
||||||
})
|
})
|
||||||
.then(res => ({
|
.then(async res => ({
|
||||||
...res,
|
...res,
|
||||||
data: res.data.map(n => this.converter.user(n.user))
|
data: (await Promise.all(res.data.map(n => this.getAccount(n.user.id)))).map(p => p.data)
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue