From 1a78ed400cd42d64ad6298a2ace77cd0bb681115 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Fri, 17 Nov 2023 13:49:12 +0100 Subject: [PATCH] upd: remove event stream calls on import --- packages/backend/src/core/NoteCreateService.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts index be84b31cff..fb20a22691 100644 --- a/packages/backend/src/core/NoteCreateService.ts +++ b/packages/backend/src/core/NoteCreateService.ts @@ -953,10 +953,6 @@ export class NoteCreateService implements OnApplicationShutdown { // Pack the note const noteObj = await this.noteEntityService.pack(note, null, { skipHide: true, withReactionAndUserPairCache: true }); - this.globalEventService.publishNotesStream(noteObj); - - this.roleService.addNoteToRoleTimeline(noteObj); - if (data.channel) { this.channelsRepository.increment({ id: data.channel.id }, 'notesCount', 1); this.channelsRepository.update(data.channel.id, {