Bluesky app fork with some witchin' additions 💫

Remove error log for Bluesky feed service issues (#9256)

authored by

Eric Bailey and committed by
GitHub
7cc897d0 6ed30213

+19 -37
+19 -37
src/state/queries/post-feed.ts
··· 30 30 import {aggregateUserInterests} from '#/lib/api/feed/utils' 31 31 import {FeedTuner, type FeedTunerFn} from '#/lib/api/feed-manip' 32 32 import {DISCOVER_FEED_URI} from '#/lib/constants' 33 - import {BSKY_FEED_OWNER_DIDS} from '#/lib/constants' 34 33 import {logger} from '#/logger' 35 34 import {useAgeAssuranceContext} from '#/state/ageAssurance' 36 35 import {STALE} from '#/state/queries' ··· 208 207 cursor: undefined, 209 208 } 210 209 211 - try { 212 - const res = await api.fetch({cursor, limit: fetchLimit}) 210 + const res = await api.fetch({cursor, limit: fetchLimit}) 213 211 214 - /* 215 - * If this is a public view, we need to check if posts fail moderation. 216 - * If all fail, we throw an error. If only some fail, we continue and let 217 - * moderations happen later, which results in some posts being shown and 218 - * some not. 219 - */ 220 - if (!agent.session) { 221 - assertSomePostsPassModeration( 222 - res.feed, 223 - preferences?.moderationPrefs || 224 - DEFAULT_LOGGED_OUT_PREFERENCES.moderationPrefs, 225 - ) 226 - } 212 + /* 213 + * If this is a public view, we need to check if posts fail moderation. 214 + * If all fail, we throw an error. If only some fail, we continue and let 215 + * moderations happen later, which results in some posts being shown and 216 + * some not. 217 + */ 218 + if (!agent.session) { 219 + assertSomePostsPassModeration( 220 + res.feed, 221 + preferences?.moderationPrefs || 222 + DEFAULT_LOGGED_OUT_PREFERENCES.moderationPrefs, 223 + ) 224 + } 227 225 228 - return { 229 - api, 230 - cursor: res.cursor, 231 - feed: res.feed, 232 - fetchedAt: Date.now(), 233 - } 234 - } catch (e) { 235 - const feedDescParts = feedDesc.split('|') 236 - const feedOwnerDid = new AtUri(feedDescParts[1]).hostname 237 - 238 - if ( 239 - feedDescParts[0] === 'feedgen' && 240 - BSKY_FEED_OWNER_DIDS.includes(feedOwnerDid) 241 - ) { 242 - logger.error(`Bluesky feed may be offline: ${feedOwnerDid}`, { 243 - feedDesc, 244 - jsError: e, 245 - }) 246 - } 247 - 248 - throw e 226 + return { 227 + api, 228 + cursor: res.cursor, 229 + feed: res.feed, 230 + fetchedAt: Date.now(), 249 231 } 250 232 }, 251 233 initialPageParam: undefined,