diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-09-05 15:03:50 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-09-05 15:03:50 +0900 |
| commit | f53cffaeb29a5663e28259e8eab85a15b1cb9044 (patch) | |
| tree | 97e212674b678991665dd6ca215a2ef677ceffb5 /packages/backend/src/server/api | |
| parent | (ad) translation for deck column settings (#11778) (diff) | |
| download | sharkey-f53cffaeb29a5663e28259e8eab85a15b1cb9044.tar.gz sharkey-f53cffaeb29a5663e28259e8eab85a15b1cb9044.tar.bz2 sharkey-f53cffaeb29a5663e28259e8eab85a15b1cb9044.zip | |
enhance(backend): タイムライン等の有効期限を設定可能に
Resolve #11773
Diffstat (limited to 'packages/backend/src/server/api')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/notes/timeline.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/backend/src/server/api/endpoints/notes/timeline.ts b/packages/backend/src/server/api/endpoints/notes/timeline.ts index 0aba310882..c53ebcbf46 100644 --- a/packages/backend/src/server/api/endpoints/notes/timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/timeline.ts @@ -69,7 +69,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- //#region Construct query const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'), ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate) - .andWhere('note.id > :minId', { minId: this.idService.genId(new Date(Date.now() - (1000 * 60 * 60 * 24 * 10))) }) // 10日前まで + // パフォーマンス上の利点が無さそう? + //.andWhere('note.id > :minId', { minId: this.idService.genId(new Date(Date.now() - (1000 * 60 * 60 * 24 * 10))) }) // 10日前まで .innerJoinAndSelect('note.user', 'user') .leftJoinAndSelect('note.reply', 'reply') .leftJoinAndSelect('note.renote', 'renote') |