remove unncessary code from actorFeedModel
parent
06ce42158e
commit
fa4af20764
|
@ -11,7 +11,7 @@ import {cleanError} from 'lib/strings/errors'
|
||||||
|
|
||||||
const PAGE_SIZE = 30
|
const PAGE_SIZE = 30
|
||||||
|
|
||||||
export class BookmarkedFeedsModel {
|
export class ActorFeedsModel {
|
||||||
// state
|
// state
|
||||||
isLoading = false
|
isLoading = false
|
||||||
isRefreshing = false
|
isRefreshing = false
|
||||||
|
@ -84,22 +84,6 @@ export class BookmarkedFeedsModel {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
async bookmark(feed: FeedDefs.GeneratorView) {
|
|
||||||
try {
|
|
||||||
await this.rootStore.agent.app.bsky.feed.bookmarkFeed({feed: feed.uri})
|
|
||||||
} catch (e: any) {
|
|
||||||
this.rootStore.log.error('Failed to bookmark feed', e)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async unbookmark(feed: FeedDefs.GeneratorView) {
|
|
||||||
try {
|
|
||||||
await this.rootStore.agent.app.bsky.feed.unbookmarkFeed({feed: feed.uri})
|
|
||||||
} catch (e: any) {
|
|
||||||
this.rootStore.log.error('Failed to unbookmark feed', e)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// state transitions
|
// state transitions
|
||||||
// =
|
// =
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue