diff options
| author | おさむのひと <46447427+samunohito@users.noreply.github.com> | 2023-11-13 09:27:37 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-13 09:27:37 +0900 |
| commit | e1cc95d3084cefe693a1f7028848d1c8aaceacf6 (patch) | |
| tree | b288c9654eb80373e874421495105dfd237d4958 /packages | |
| parent | fix(frontend): 「フォロー中の人全員の返信を含める/含めな... (diff) | |
| download | sharkey-e1cc95d3084cefe693a1f7028848d1c8aaceacf6.tar.gz sharkey-e1cc95d3084cefe693a1f7028848d1c8aaceacf6.tar.bz2 sharkey-e1cc95d3084cefe693a1f7028848d1c8aaceacf6.zip | |
ユーザのノートのみ表示時にDBへフォールバックするとリノートを含んでしまうのを修正 (#12321)
* ユーザのノートのみ表示時にDBへフォールバックするとリノートを含んでしまうのを修正
* fix CHANGELOG.md
---------
Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/users/notes.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/backend/src/server/api/endpoints/users/notes.ts b/packages/backend/src/server/api/endpoints/users/notes.ts index 343d320f6e..a43e572922 100644 --- a/packages/backend/src/server/api/endpoints/users/notes.ts +++ b/packages/backend/src/server/api/endpoints/users/notes.ts @@ -51,7 +51,6 @@ export const paramDef = { untilId: { type: 'string', format: 'misskey:id' }, sinceDate: { type: 'integer' }, untilDate: { type: 'integer' }, - includeMyRenotes: { type: 'boolean', default: true }, withFiles: { type: 'boolean', default: false }, excludeNsfw: { type: 'boolean', default: false }, }, @@ -169,7 +168,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- query.andWhere('note.fileIds != \'{}\''); } - if (ps.includeMyRenotes === false) { + if (ps.withRenotes === false) { query.andWhere(new Brackets(qb => { qb.orWhere('note.userId != :userId', { userId: ps.userId }); qb.orWhere('note.renoteId IS NULL'); |