This commit is contained in:
mattyatea 2024-04-22 21:09:11 +09:00
parent 77a91384e6
commit a9e6c8bb9c
2 changed files with 2 additions and 6 deletions

View File

@ -334,9 +334,7 @@ export class GlobalEventService {
@bindThis
public publishInternalEvent<K extends keyof InternalEventTypes>(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<K extends keyof MainEventTypes>(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

View File

@ -462,7 +462,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // 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<typeof meta, typeof paramDef> { // 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) {