Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Fix lexicon validation in PWI Discover (#5329)

authored by

dan and committed by
GitHub
791bc7af 26508cfe

+3 -2
+3 -2
src/lib/api/feed/custom.ts
··· 2 2 AppBskyFeedDefs, 3 3 AppBskyFeedGetFeed as GetCustomFeed, 4 4 BskyAgent, 5 + jsonStringToLex, 5 6 } from '@atproto/api' 6 7 7 8 import {getContentLanguages} from '#/state/preferences/languages' ··· 111 112 }&limit=${limit}&lang=${contentLangs}`, 112 113 {method: 'GET', headers: {'Accept-Language': contentLangs}}, 113 114 ) 114 - let data = res.ok ? await res.json() : null 115 + let data = res.ok ? jsonStringToLex(await res.text()) : null 115 116 if (data?.feed?.length) { 116 117 return { 117 118 success: true, ··· 126 127 }&limit=${limit}`, 127 128 {method: 'GET', headers: {'Accept-Language': ''}}, 128 129 ) 129 - data = res.ok ? await res.json() : null 130 + data = res.ok ? jsonStringToLex(await res.text()) : null 130 131 if (data?.feed?.length) { 131 132 return { 132 133 success: true,