replace remaining meUpdate events

This commit is contained in:
kakkokari-gtyih 2024-11-27 11:11:28 +09:00
parent a32092a8b2
commit 353882ebbe
2 changed files with 2 additions and 7 deletions

View file

@ -108,9 +108,7 @@ export class UserBlockingService implements OnModuleInit {
}); });
if (this.userEntityService.isLocalUser(followee)) { if (this.userEntityService.isLocalUser(followee)) {
this.userEntityService.pack(followee, followee, { this.globalEventService.publishMainStream(followee.id, 'meUpdated');
schema: 'MeDetailed',
}).then(packed => this.globalEventService.publishMainStream(followee.id, 'meUpdated', packed));
} }
if (this.userEntityService.isLocalUser(follower) && !silent) { if (this.userEntityService.isLocalUser(follower) && !silent) {

View file

@ -212,10 +212,7 @@ export class ServerService implements OnApplicationShutdown {
emailVerifyCode: null, emailVerifyCode: null,
}); });
this.globalEventService.publishMainStream(profile.userId, 'meUpdated', await this.userEntityService.pack(profile.userId, { id: profile.userId }, { this.globalEventService.publishMainStream(profile.userId, 'meUpdated');
schema: 'MeDetailed',
includeSecrets: true,
}));
reply.code(200).send('Verification succeeded! メールアドレスの認証に成功しました。'); reply.code(200).send('Verification succeeded! メールアドレスの認証に成功しました。');
return; return;