[READ-ONLY] Mirror of https://github.com/danielroe/roe.dev. This is the code and content for my personal website, built in Nuxt. roe.dev
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: ignore errors fetching feed items

+2 -2
+2 -2
app/components/TheSocialFeed.server.vue
··· 27 27 import type { MastodonFeedItem } from '~~/modules/social/runtime/server/_social/mastodon.get' 28 28 29 29 const [mastodon, bluesky] = await Promise.all([ 30 - $fetch<MastodonFeedItem[]>('/_social/mastodon'), 31 - $fetch<BlueskyFeedItem[]>('/_social/bluesky').then(r => r.filter(p => !p.html?.includes('#ama'))), 30 + $fetch<MastodonFeedItem[]>('/_social/mastodon').catch(() => [] as MastodonFeedItem[]), 31 + $fetch<BlueskyFeedItem[]>('/_social/bluesky').then(r => r.filter(p => !p.html?.includes('#ama'))).catch(() => [] as BlueskyFeedItem[]), 32 32 ]) 33 33 34 34 const sortedFeed = [...mastodon, ...bluesky]