fix streaming API notes missing reactions, not always being hidden, and having incorrect values for the isRenoted, isFavorited, isMutingThread, and isMutingNote properties

This commit is contained in:
Hazelnoot 2025-06-23 15:45:47 -04:00
parent 8cbe1344f6
commit 4c2a0fed63
12 changed files with 227 additions and 76 deletions

View file

@ -601,6 +601,7 @@ export class ClientServerService {
relations: ['user'],
});
// TODO pack with current user, or the frontend can get bad data
if (note && !note.user!.requireSigninToViewContents) {
const _note = await this.noteEntityService.pack(note);
const profile = await this.userProfilesRepository.findOneByOrFail({ userId: note.userId });