diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-06-01 14:46:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-01 14:46:13 -0500 |
commit | e9c84a192b3a64c49a227617e8b58c25d3e5d0f3 (patch) | |
tree | 5bf2e6dd51e4b306758069a820a0f8c06b0cd727 /src/state/models/feeds/posts.ts | |
parent | f416798c5fef6a8fb45aa93269f2962463ca3767 (diff) | |
download | voidsky-e9c84a192b3a64c49a227617e8b58c25d3e5d0f3.tar.zst |
Fixes to feed preference and state sync [APP-678] (#829)
* Remove extraneous custom-feed health check * Fixes to custom feed preference sync * Fix lint * Fix to how preferences are synced to enable membership modifications
Diffstat (limited to 'src/state/models/feeds/posts.ts')
-rw-r--r-- | src/state/models/feeds/posts.ts | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/state/models/feeds/posts.ts b/src/state/models/feeds/posts.ts index 911cc6309..02ef5f38b 100644 --- a/src/state/models/feeds/posts.ts +++ b/src/state/models/feeds/posts.ts @@ -436,9 +436,6 @@ export class PostsFeedModel { } else if (this.feedType === 'home') { return this.rootStore.agent.getTimeline(params as GetTimeline.QueryParams) } else if (this.feedType === 'custom') { - this.checkIfCustomFeedIsOnlineAndValid( - params as GetCustomFeed.QueryParams, - ) return this.rootStore.agent.app.bsky.feed.getFeed( params as GetCustomFeed.QueryParams, ) @@ -448,18 +445,4 @@ export class PostsFeedModel { ) } } - - private async checkIfCustomFeedIsOnlineAndValid( - params: GetCustomFeed.QueryParams, - ) { - const res = await this.rootStore.agent.app.bsky.feed.getFeedGenerator({ - feed: params.feed, - }) - if (!res.data.isOnline || !res.data.isValid) { - runInAction(() => { - this.error = - 'This custom feed is not online or may be experiencing issues.' - }) - } - } } |