revert: 650187deaf
This commit is contained in:
parent
6f7cfa82b5
commit
73f06e591a
31 changed files with 70 additions and 33 deletions
|
@ -413,6 +413,7 @@ export class UserEntityService implements OnModuleInit {
|
|||
faviconUrl: instance.faviconUrl,
|
||||
themeColor: instance.themeColor,
|
||||
} : undefined) : undefined,
|
||||
emojis: this.customEmojiService.populateEmojis(user.emojis, user.host),
|
||||
onlineStatus: this.getOnlineStatus(user),
|
||||
// パフォーマンス上の理由でローカルユーザーのみ
|
||||
badgeRoles: user.host == null ? this.roleService.getUserBadgeRoles(user.id).then(rs => rs.map(r => ({
|
||||
|
@ -463,7 +464,6 @@ export class UserEntityService implements OnModuleInit {
|
|||
isModerator: role.isModerator,
|
||||
isAdministrator: role.isAdministrator,
|
||||
}))),
|
||||
emojis: this.customEmojiService.populateEmojis(user.emojis, user.host),
|
||||
} : {}),
|
||||
|
||||
...(opts.detail && isMe ? {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue