diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2024-06-22 16:52:27 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-22 16:52:27 +0900 |
| commit | 7c22a64b8c505f6e6c9da0fec16902fcd9af773f (patch) | |
| tree | 394c34f175910562ac062007fc5fe09c2307a6f3 /packages/backend/src | |
| parent | fix(frontend): ベースロールを編集してもUI上では変更が反映... (diff) | |
| download | misskey-7c22a64b8c505f6e6c9da0fec16902fcd9af773f.tar.gz misskey-7c22a64b8c505f6e6c9da0fec16902fcd9af773f.tar.bz2 misskey-7c22a64b8c505f6e6c9da0fec16902fcd9af773f.zip | |
fix(backend): 自分以外のクリップ内のノート個数が見えるのを修正 (#14065)
* fix(backend): 自分以外のクリップ内のノート個数が見えることがあるのを修正
* Update Changelog
* fix
Diffstat (limited to 'packages/backend/src')
| -rw-r--r-- | packages/backend/src/core/entities/ClipEntityService.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/entities/ClipEntityService.ts b/packages/backend/src/core/entities/ClipEntityService.ts index 3855a28436..d915645906 100644 --- a/packages/backend/src/core/entities/ClipEntityService.ts +++ b/packages/backend/src/core/entities/ClipEntityService.ts @@ -53,7 +53,7 @@ export class ClipEntityService { isPublic: clip.isPublic, favoritedCount: await this.clipFavoritesRepository.countBy({ clipId: clip.id }), isFavorited: meId ? await this.clipFavoritesRepository.exists({ where: { clipId: clip.id, userId: meId } }) : undefined, - notesCount: meId ? await this.clipNotesRepository.countBy({ clipId: clip.id }) : undefined, + notesCount: (meId === clip.userId) ? await this.clipNotesRepository.countBy({ clipId: clip.id }) : undefined, }); } |