mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 17:16:08 +02:00
enhance(backend): アカウントでチャットが有効になっているかどうかをユーザーのレスポンスに含めるように
This commit is contained in:
@@ -557,6 +557,7 @@ export class UserEntityService implements OnModuleInit {
|
||||
followersVisibility: profile!.followersVisibility,
|
||||
followingVisibility: profile!.followingVisibility,
|
||||
chatScope: user.chatScope,
|
||||
canChat: this.roleService.getUserPolicies(user.id).then(r => r.canChat),
|
||||
roles: this.roleService.getUserRoles(user.id).then(roles => roles.filter(role => role.isPublic).sort((a, b) => b.displayOrder - a.displayOrder).map(role => ({
|
||||
id: role.id,
|
||||
name: role.name,
|
||||
|
||||
Reference in New Issue
Block a user