make since optimize accept Option<&NoteRef> instead of notes

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-08-25 09:52:42 -04:00
parent 49866418a6
commit 697040d862
2 changed files with 10 additions and 7 deletions

View File

@@ -552,7 +552,7 @@ pub fn send_initial_timeline_filter(
// notes than the limit, we might want to backfill
// older notes
if can_since_optimize && filter::should_since_optimize(lim, notes.len()) {
filter = filter::since_optimize_filter(filter, notes);
filter = filter::since_optimize_filter(filter, Some(&notes[0]));
} else {
warn!("Skipping since optimization for {:?}: number of local notes is less than limit, attempting to backfill.", &timeline.kind);
}