[mastodon-client] populate user details for notifications

This commit is contained in:
Laura Hausmann 2023-07-09 21:47:49 +02:00
parent d1c9c7cc31
commit 32ea8320ac
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -1236,6 +1236,8 @@ export default class Misskey implements MegalodonInterface {
const notification = this.converter.notification(n, host); const notification = this.converter.notification(n, host);
if (n.note) if (n.note)
notification.status = await this.noteWithDetails(n.note, host, cache); notification.status = await this.noteWithDetails(n.note, host, cache);
if (notification.account)
notification.account = (await this.getAccount(notification.account.id)).data
return notification; return notification;
} }