diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-09-17 10:55:26 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-09-17 10:55:26 +0900 |
| commit | f7c6932a83f80b6c43bcb79dcd11e8d490ce242a (patch) | |
| tree | 587065237577996c04dc21b81dd9986f46fd68d1 /packages/backend/src/core | |
| parent | enhance(frontend): improve note detail page (diff) | |
| download | misskey-f7c6932a83f80b6c43bcb79dcd11e8d490ce242a.tar.gz misskey-f7c6932a83f80b6c43bcb79dcd11e8d490ce242a.tar.bz2 misskey-f7c6932a83f80b6c43bcb79dcd11e8d490ce242a.zip | |
enhance: 各ノートが被クリップ数を保持するようにし、無意味にnotes/clipsを叩かないように
Diffstat (limited to 'packages/backend/src/core')
| -rw-r--r-- | packages/backend/src/core/entities/NoteEntityService.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/backend/src/core/entities/NoteEntityService.ts b/packages/backend/src/core/entities/NoteEntityService.ts index add50457c2..242ef07e7c 100644 --- a/packages/backend/src/core/entities/NoteEntityService.ts +++ b/packages/backend/src/core/entities/NoteEntityService.ts @@ -340,6 +340,8 @@ export class NoteEntityService implements OnModuleInit { url: note.url ?? undefined, ...(opts.detail ? { + clippedCount: note.clippedCount, + reply: note.replyId ? this.pack(note.reply ?? note.replyId, me, { detail: false, _hint_: options?._hint_, |