1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-21 09:55:28 +02:00

Merge branch 'develop' into multiple-reactions

This commit is contained in:
syuilo
2024-08-17 17:23:02 +09:00
297 changed files with 9465 additions and 4835 deletions

View File

@@ -508,14 +508,15 @@ export class RoleService implements OnApplicationShutdown, OnModuleInit {
this.globalEventService.publishInternalEvent('userRoleAssigned', created);
if (role.isPublic) {
const user = await this.usersRepository.findOneByOrFail({ id: userId });
if (role.isPublic && user.host === null) {
this.notificationService.createNotification(userId, 'roleAssigned', {
roleId: roleId,
});
}
if (moderator) {
const user = await this.usersRepository.findOneByOrFail({ id: userId });
this.moderationLogService.log(moderator, 'assignRole', {
roleId: roleId,
roleName: role.name,