upd: remove event stream calls on import

This commit is contained in:
Mar0xy 2023-11-17 13:49:12 +01:00
parent a3fd51d6e0
commit 1a78ed400c
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

@ -953,10 +953,6 @@ export class NoteCreateService implements OnApplicationShutdown {
// Pack the note // Pack the note
const noteObj = await this.noteEntityService.pack(note, null, { skipHide: true, withReactionAndUserPairCache: true }); const noteObj = await this.noteEntityService.pack(note, null, { skipHide: true, withReactionAndUserPairCache: true });
this.globalEventService.publishNotesStream(noteObj);
this.roleService.addNoteToRoleTimeline(noteObj);
if (data.channel) { if (data.channel) {
this.channelsRepository.increment({ id: data.channel.id }, 'notesCount', 1); this.channelsRepository.increment({ id: data.channel.id }, 'notesCount', 1);
this.channelsRepository.update(data.channel.id, { this.channelsRepository.update(data.channel.id, {