Bluesky app fork with some witchin' additions 💫

Bump labeler limit to 20 (#4565)

* Increase the labeler subscription limit to 20

* Bump @atproto/api@0.12.20

* Fix: correctly count labeler subscriptions

---------

Co-authored-by: dan <dan.abramov@gmail.com>

authored by

Paul Frazee
dan
and committed by
GitHub
853c32b4 0012d123

+8 -8
+1 -1
package.json
··· 49 49 "open-analyzer": "EXPO_PUBLIC_OPEN_ANALYZER=1 yarn build-web" 50 50 }, 51 51 "dependencies": { 52 - "@atproto/api": "^0.12.19", 52 + "@atproto/api": "^0.12.20", 53 53 "@bam.tech/react-native-image-resizer": "^3.0.4", 54 54 "@braintree/sanitize-url": "^6.0.2", 55 55 "@discord/bottom-sheet": "bluesky-social/react-native-bottom-sheet",
+3 -3
src/screens/Profile/Header/ProfileHeaderLabeler.tsx
··· 82 82 preferences?.moderationPrefs.labelers.find(l => l.did === profile.did) 83 83 const canSubscribe = 84 84 isSubscribed || 85 - (preferences ? preferences?.moderationPrefs.labelers.length < 9 : false) 85 + (preferences ? preferences?.moderationPrefs.labelers.length <= 20 : false) 86 86 const {mutateAsync: likeMod, isPending: isLikePending} = useLikeMutation() 87 87 const {mutateAsync: unlikeMod, isPending: isUnlikePending} = 88 88 useUnlikeMutation() ··· 328 328 <Prompt.TitleText>Unable to subscribe</Prompt.TitleText> 329 329 <Prompt.DescriptionText> 330 330 <Trans> 331 - We're sorry! You can only subscribe to ten labelers, and you've 332 - reached your limit of ten. 331 + We're sorry! You can only subscribe to twenty labelers, and you've 332 + reached your limit of twenty. 333 333 </Trans> 334 334 </Prompt.DescriptionText> 335 335 <Prompt.Actions>
+4 -4
yarn.lock
··· 34 34 jsonpointer "^5.0.0" 35 35 leven "^3.1.0" 36 36 37 - "@atproto/api@^0.12.19": 38 - version "0.12.19" 39 - resolved "https://registry.yarnpkg.com/@atproto/api/-/api-0.12.19.tgz#6d842269b6b9cd3fc5864e12824d4fb04cc033cf" 40 - integrity sha512-dsiTpjqBhjGwNW/qG/tLSgUQnmOSvd8hsQr5d8GCUDGK2AEHWl0KNgLPbwxIBEIo8Jg9NHsvqV7BMoix8YreIg== 37 + "@atproto/api@^0.12.20": 38 + version "0.12.20" 39 + resolved "https://registry.yarnpkg.com/@atproto/api/-/api-0.12.20.tgz#2cada08c24bc61eb1775ee4c8010c7ed9dc5d6f3" 40 + integrity sha512-nt7ZKUQL9j2yQ3tmCCueiIuc0FwdxZYn2fXdLYqltuxlaO5DmaqqULMBKeYJLq4GbvVl/G+ikPJccoSaMWDYOg== 41 41 dependencies: 42 42 "@atproto/common-web" "^0.3.0" 43 43 "@atproto/lexicon" "^0.4.0"