diff options
| author | anatawa12 <anatawa12@icloud.com> | 2023-12-04 17:56:48 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-04 17:56:48 +0900 |
| commit | bb38e62ae696873990d0252c66200c361878e9f8 (patch) | |
| tree | a3aa02354de86132a76bef5f7f6f6244e80d6bc6 /packages/backend/src/server/api | |
| parent | feat: ユーザースキーマの改善 (#12568) (diff) | |
| download | misskey-bb38e62ae696873990d0252c66200c361878e9f8.tar.gz misskey-bb38e62ae696873990d0252c66200c361878e9f8.tar.bz2 misskey-bb38e62ae696873990d0252c66200c361878e9f8.zip | |
chore: 自分へのリプライのみ走査するように (#12570)
Diffstat (limited to 'packages/backend/src/server/api')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/notes/local-timeline.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/backend/src/server/api/endpoints/notes/local-timeline.ts b/packages/backend/src/server/api/endpoints/notes/local-timeline.ts index e8ba39bbf0..3fd4dc83fb 100644 --- a/packages/backend/src/server/api/endpoints/notes/local-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/local-timeline.ts @@ -42,7 +42,7 @@ export const meta = { bothWithRepliesAndWithFiles: { message: 'Specifying both withReplies and withFiles is not supported', code: 'BOTH_WITH_REPLIES_AND_WITH_FILES', - id: 'dd9c8400-1cb5-4eef-8a31-200c5f933793' + id: 'dd9c8400-1cb5-4eef-8a31-200c5f933793', }, }, } as const; @@ -116,9 +116,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- allowPartial: ps.allowPartial, me, useDbFallback: serverSettings.enableFanoutTimelineDbFallback, - redisTimelines: ps.withFiles ? ['localTimelineWithFiles'] : ['localTimeline', 'localTimelineWithReplies'], + redisTimelines: + ps.withFiles ? ['localTimelineWithFiles'] + : ps.withReplies ? ['localTimeline', 'localTimelineWithReplies'] + : me ? ['localTimeline', `localTimelineWithReplyTo:${me.id}`] + : ['localTimeline'], alwaysIncludeMyNotes: true, - excludeReplies: !ps.withReplies, excludePureRenotes: !ps.withRenotes, dbFallback: async (untilId, sinceId, limit) => await this.getFromDb({ untilId, |