forked from
jollywhoppers.com/witchsky.app
Bluesky app fork with some witchin' additions 馃挮
1import {type AppBskyFeedDefs, type BskyAgent} from '@atproto/api'
2
3import {DEMO_FEED} from '#/lib/demo'
4import {type FeedAPI, type FeedAPIResponse} from './types'
5
6export class DemoFeedAPI implements FeedAPI {
7 agent: BskyAgent
8
9 constructor({agent}: {agent: BskyAgent}) {
10 this.agent = agent
11 }
12
13 async peekLatest(): Promise<AppBskyFeedDefs.FeedViewPost> {
14 return DEMO_FEED.feed[0]
15 }
16
17 async fetch(): Promise<FeedAPIResponse> {
18 return DEMO_FEED
19 }
20}