From 42b6b1b3b67db3910ce495701bedd0dc5a2ff420 Mon Sep 17 00:00:00 2001 From: Bossett Date: Tue, 31 Dec 2024 02:57:18 +0000 Subject: [PATCH] disable discourse (temp) --- src/algos/index.ts | 166 ++++++++++++++++++++++----------------------- 1 file changed, 83 insertions(+), 83 deletions(-) diff --git a/src/algos/index.ts b/src/algos/index.ts index 132bc7b3..7358d3f5 100755 --- a/src/algos/index.ts +++ b/src/algos/index.ts @@ -1,83 +1,83 @@ -import { AppContext } from '../config' -import { - QueryParams, - OutputSchema as AlgoOutput, -} from '../lexicon/types/app/bsky/feed/getFeedSkeleton' -import * as forScience from './for-science' -import * as ausPol from './auspol' -import * as dads from './dads' -import * as dadsMedia from './dads-media' -import * as EighteenPlusND from './18-plus-nd' -import * as ND from './nd' -import * as discourse from './discourse' -import * as cats from './cats' -import * as elusive from './elusive' -import * as keyboards from './keyboards' -import * as overheard from './overheard' -import * as paxaus from './paxaus' -import * as external from './externalList' -import * as twelveWords from './twelve-words' - -type AlgoHandler = (ctx: AppContext, params: QueryParams) => Promise - -const algos = { - [forScience.shortname]: { - handler: forScience.handler, - manager: forScience.manager, - }, - [ausPol.shortname]: { - handler: ausPol.handler, - manager: ausPol.manager, - }, - [dads.shortname]: { - handler: dads.handler, - manager: dads.manager, - }, - [dadsMedia.shortname]: { - handler: dadsMedia.handler, - manager: dadsMedia.manager, - }, - [EighteenPlusND.shortname]: { - handler: EighteenPlusND.handler, - manager: EighteenPlusND.manager, - }, - [ND.shortname]: { - handler: ND.handler, - manager: ND.manager, - }, - [discourse.shortname]: { - handler: discourse.handler, - manager: discourse.manager, - }, - [elusive.shortname]: { - handler: elusive.handler, - manager: elusive.manager, - }, - [cats.shortname]: { - handler: cats.handler, - manager: cats.manager, - }, - [keyboards.shortname]: { - handler: keyboards.handler, - manager: keyboards.manager, - }, - [overheard.shortname]: { - handler: overheard.handler, - manager: overheard.manager, - }, - [paxaus.shortname]: { - handler: paxaus.handler, - manager: paxaus.manager, - }, - [external.shortname]: { - handler: external.handler, - manager: external.manager, - }, - ['aaaolsp7e26zo']: { - // originally a skyfeed feed, so re-using the key - handler: twelveWords.handler, - manager: twelveWords.manager, - }, -} - -export default algos +import { AppContext } from '../config' +import { + QueryParams, + OutputSchema as AlgoOutput, +} from '../lexicon/types/app/bsky/feed/getFeedSkeleton' +import * as forScience from './for-science' +import * as ausPol from './auspol' +import * as dads from './dads' +import * as dadsMedia from './dads-media' +import * as EighteenPlusND from './18-plus-nd' +import * as ND from './nd' +import * as discourse from './discourse' +import * as cats from './cats' +import * as elusive from './elusive' +import * as keyboards from './keyboards' +import * as overheard from './overheard' +import * as paxaus from './paxaus' +import * as external from './externalList' +import * as twelveWords from './twelve-words' + +type AlgoHandler = (ctx: AppContext, params: QueryParams) => Promise + +const algos = { + [forScience.shortname]: { + handler: forScience.handler, + manager: forScience.manager, + }, + [ausPol.shortname]: { + handler: ausPol.handler, + manager: ausPol.manager, + }, + [dads.shortname]: { + handler: dads.handler, + manager: dads.manager, + }, + [dadsMedia.shortname]: { + handler: dadsMedia.handler, + manager: dadsMedia.manager, + }, + [EighteenPlusND.shortname]: { + handler: EighteenPlusND.handler, + manager: EighteenPlusND.manager, + }, + [ND.shortname]: { + handler: ND.handler, + manager: ND.manager, + }, + // [discourse.shortname]: { + // handler: discourse.handler, + // manager: discourse.manager, + // }, + [elusive.shortname]: { + handler: elusive.handler, + manager: elusive.manager, + }, + [cats.shortname]: { + handler: cats.handler, + manager: cats.manager, + }, + [keyboards.shortname]: { + handler: keyboards.handler, + manager: keyboards.manager, + }, + [overheard.shortname]: { + handler: overheard.handler, + manager: overheard.manager, + }, + [paxaus.shortname]: { + handler: paxaus.handler, + manager: paxaus.manager, + }, + [external.shortname]: { + handler: external.handler, + manager: external.manager, + }, + ['aaaolsp7e26zo']: { + // originally a skyfeed feed, so re-using the key + handler: twelveWords.handler, + manager: twelveWords.manager, + }, +} + +export default algos