Skip to content

Commit

Permalink
disable discourse (temp)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bossett committed Dec 31, 2024
1 parent e991bd7 commit 42b6b1b
Showing 1 changed file with 83 additions and 83 deletions.
166 changes: 83 additions & 83 deletions src/algos/index.ts
Original file line number Diff line number Diff line change
@@ -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<AlgoOutput>

const algos = {
[forScience.shortname]: {
handler: <AlgoHandler>forScience.handler,
manager: forScience.manager,
},
[ausPol.shortname]: {
handler: <AlgoHandler>ausPol.handler,
manager: ausPol.manager,
},
[dads.shortname]: {
handler: <AlgoHandler>dads.handler,
manager: dads.manager,
},
[dadsMedia.shortname]: {
handler: <AlgoHandler>dadsMedia.handler,
manager: dadsMedia.manager,
},
[EighteenPlusND.shortname]: {
handler: <AlgoHandler>EighteenPlusND.handler,
manager: EighteenPlusND.manager,
},
[ND.shortname]: {
handler: <AlgoHandler>ND.handler,
manager: ND.manager,
},
[discourse.shortname]: {
handler: <AlgoHandler>discourse.handler,
manager: discourse.manager,
},
[elusive.shortname]: {
handler: <AlgoHandler>elusive.handler,
manager: elusive.manager,
},
[cats.shortname]: {
handler: <AlgoHandler>cats.handler,
manager: cats.manager,
},
[keyboards.shortname]: {
handler: <AlgoHandler>keyboards.handler,
manager: keyboards.manager,
},
[overheard.shortname]: {
handler: <AlgoHandler>overheard.handler,
manager: overheard.manager,
},
[paxaus.shortname]: {
handler: <AlgoHandler>paxaus.handler,
manager: paxaus.manager,
},
[external.shortname]: {
handler: <AlgoHandler>external.handler,
manager: external.manager,
},
['aaaolsp7e26zo']: {
// originally a skyfeed feed, so re-using the key
handler: <AlgoHandler>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<AlgoOutput>

const algos = {
[forScience.shortname]: {
handler: <AlgoHandler>forScience.handler,
manager: forScience.manager,
},
[ausPol.shortname]: {
handler: <AlgoHandler>ausPol.handler,
manager: ausPol.manager,
},
[dads.shortname]: {
handler: <AlgoHandler>dads.handler,
manager: dads.manager,
},
[dadsMedia.shortname]: {
handler: <AlgoHandler>dadsMedia.handler,
manager: dadsMedia.manager,
},
[EighteenPlusND.shortname]: {
handler: <AlgoHandler>EighteenPlusND.handler,
manager: EighteenPlusND.manager,
},
[ND.shortname]: {
handler: <AlgoHandler>ND.handler,
manager: ND.manager,
},
// [discourse.shortname]: {
// handler: <AlgoHandler>discourse.handler,
// manager: discourse.manager,
// },
[elusive.shortname]: {
handler: <AlgoHandler>elusive.handler,
manager: elusive.manager,
},
[cats.shortname]: {
handler: <AlgoHandler>cats.handler,
manager: cats.manager,
},
[keyboards.shortname]: {
handler: <AlgoHandler>keyboards.handler,
manager: keyboards.manager,
},
[overheard.shortname]: {
handler: <AlgoHandler>overheard.handler,
manager: overheard.manager,
},
[paxaus.shortname]: {
handler: <AlgoHandler>paxaus.handler,
manager: paxaus.manager,
},
[external.shortname]: {
handler: <AlgoHandler>external.handler,
manager: external.manager,
},
['aaaolsp7e26zo']: {
// originally a skyfeed feed, so re-using the key
handler: <AlgoHandler>twelveWords.handler,
manager: twelveWords.manager,
},
}

export default algos

0 comments on commit 42b6b1b

Please sign in to comment.