mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 10:20:27 +01:00
Fix: shouldFallbackToDbがすでにtrueの場合にそれが無視される
This commit is contained in:
parent
6cc0138d1e
commit
685fc2bd9d
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ export class FanoutTimelineEndpointService {
|
|||
let noteIds = redisResultIds.filter(id => id >= thresholdId).slice(0, ps.limit);
|
||||
|
||||
const oldestNoteId = ascending ? redisResultIds[0] : redisResultIds[redisResultIds.length - 1];
|
||||
shouldFallbackToDb = noteIds.length === 0 || ps.sinceId != null && ps.sinceId < oldestNoteId;
|
||||
shouldFallbackToDb ||= noteIds.length === 0 || ps.sinceId != null && ps.sinceId < oldestNoteId;
|
||||
|
||||
if (!shouldFallbackToDb) {
|
||||
let filter = ps.noteFilter ?? (_note => true);
|
||||
|
|
Loading…
Reference in a new issue