diff --git a/packages/backend/src/core/GlobalEventService.ts b/packages/backend/src/core/GlobalEventService.ts index 0f2e20fecc..bfd0cc8a4f 100644 --- a/packages/backend/src/core/GlobalEventService.ts +++ b/packages/backend/src/core/GlobalEventService.ts @@ -334,9 +334,7 @@ export class GlobalEventService { @bindThis public publishInternalEvent(type: K, value?: InternalEventTypes[K]): void { - console.time('time GlobalEventService.publishInternalEvent'); this.publish('internal', type, typeof value === 'undefined' ? null : value); - console.timeEnd('time GlobalEventService.publishInternalEvent'); } @bindThis @@ -346,9 +344,7 @@ export class GlobalEventService { @bindThis public publishMainStream(userId: MiUser['id'], type: K, value?: MainEventTypes[K]): void { - console.time('time GlobalEventService.publishMainStream'); this.publish(`mainStream:${userId}`, type, typeof value === 'undefined' ? null : value); - console.timeEnd('time GlobalEventService.publishMainStream'); } @bindThis diff --git a/packages/backend/src/server/api/endpoints/i/update.ts b/packages/backend/src/server/api/endpoints/i/update.ts index 37a36cd7c1..18bf82454b 100644 --- a/packages/backend/src/server/api/endpoints/i/update.ts +++ b/packages/backend/src/server/api/endpoints/i/update.ts @@ -462,7 +462,7 @@ export default class extends Endpoint { // eslint- //#endregion if (Object.keys(updates).length > 0) { await this.usersRepository.update(user.id, updates); - //this.globalEventService.publishInternalEvent('localUserUpdated', { id: user.id }); + this.globalEventService.publishInternalEvent('localUserUpdated', { id: user.id }); } await this.userProfilesRepository.update(user.id, { @@ -488,7 +488,7 @@ export default class extends Endpoint { // eslint- } // フォロワーにUpdateを配信 - //this.accountUpdateService.publishToFollowers(user.id); + this.accountUpdateService.publishToFollowers(user.id); const urls = updatedProfile.fields.filter(x => x.value.startsWith('https://')); for (const url of urls) {