1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-28 17:34:36 +02:00

fix: address role display review issues

This commit is contained in:
mattyatea
2026-06-29 22:47:26 +09:00
parent c1bd11eada
commit be9762c169
2 changed files with 2 additions and 2 deletions

View File

@@ -547,7 +547,7 @@ export class UserEntityService implements OnModuleInit {
emojis: this.customEmojiService.populateEmojis(user.emojis, user.host),
onlineStatus: this.getOnlineStatus(user),
// パフォーマンス上の理由で、明示的に設定しない場合はローカルユーザーのみ取得
badgeRoles: (this.meta.showRoleBadgesOfRemoteUsers || user.host == null) ? this.roleService.getUserBadgeRoles(user.id).then((rs) => this.filterHiddenDisplayRoles(rs.filter((r) => r.isPublic || iAmModerator), user, false, true)
badgeRoles: (this.meta.showRoleBadgesOfRemoteUsers || user.host == null) ? this.roleService.getUserBadgeRoles(user.id).then((rs) => this.filterHiddenDisplayRoles(rs.filter((r) => r.isPublic || iAmModerator), user, iAmModerator, true)
.sort((a, b) => b.displayOrder - a.displayOrder)
.map((r) => ({
id: r.id,

View File

@@ -2,7 +2,7 @@
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { expect, waitFor, within } from '@storybook/test';
import { HttpResponse, http } from 'msw';
import { userDetailed } from '../../../.storybook/fakes.js';