remove no-op Fanout alwaysIncludeMyNotes option
This commit is contained in:
parent
9dad384f81
commit
cd25ed8d18
5 changed files with 0 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue