remove no-op Fanout alwaysIncludeMyNotes option

This commit is contained in:
Hazelnoot 2025-08-14 09:55:18 -04:00
parent 9dad384f81
commit cd25ed8d18
5 changed files with 0 additions and 11 deletions

View file

@ -31,7 +31,6 @@ type TimelineOptions = {
useDbFallback: boolean,
redisTimelines: FanoutTimelineName[],
noteFilter?: (note: MiNote) => boolean,
alwaysIncludeMyNotes?: boolean;
ignoreAuthorFromBlock?: boolean;
ignoreAuthorFromMute?: boolean;
ignoreAuthorFromInstanceBlock?: boolean;
@ -88,12 +87,6 @@ export class FanoutTimelineEndpointService {
if (!shouldFallbackToDb) {
let filter = ps.noteFilter ?? (_note => true);
if (ps.alwaysIncludeMyNotes && ps.me) {
const me = ps.me;
const parentFilter = filter;
filter = (note) => note.userId === me.id || parentFilter(note);
}
if (ps.excludeNoFiles) {
const parentFilter = filter;
filter = (note) => note.fileIds.length !== 0 && parentFilter(note);