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)) {
this.userEntityService.pack(followee, followee, {
schema: 'MeDetailed',
}).then(packed => this.globalEventService.publishMainStream(followee.id, 'meUpdated', packed));
this.globalEventService.publishMainStream(followee.id, 'meUpdated');
}
if (this.userEntityService.isLocalUser(follower) && !silent) {

View file

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