upd: pass full thinuser

This commit is contained in:
Mar0xy 2023-11-12 15:48:28 +01:00
parent 2d1e8ee44d
commit b7fc13efb7
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
2 changed files with 10 additions and 14 deletions

View file

@ -949,17 +949,13 @@ export class NoteCreateService implements OnApplicationShutdown {
removeOnComplete: true,
});
}
// Pack the note
const noteObj = await this.noteEntityService.pack(note, null, { skipHide: true, withReactionAndUserPairCache: true });
if (!silent) {
if (this.userEntityService.isLocalUser(user)) this.activeUsersChart.write(user);
this.globalEventService.publishNotesStream(noteObj);
// Pack the note
const noteObj = await this.noteEntityService.pack(note, null, { skipHide: true, withReactionAndUserPairCache: true });
this.globalEventService.publishNotesStream(noteObj);
this.roleService.addNoteToRoleTimeline(noteObj);
}
this.roleService.addNoteToRoleTimeline(noteObj);
if (data.channel) {
this.channelsRepository.increment({ id: data.channel.id }, 'notesCount', 1);