diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-06-18 14:21:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 00:21:55 +0300 |
commit | 853c32b4d8cfe86ed02c688c32fc99e788c33838 (patch) | |
tree | 6382521b267042490751f0543bb15675a9447e22 | |
parent | 0012d1236ffa4f268fb359931d02335b21610fd6 (diff) | |
download | voidsky-853c32b4d8cfe86ed02c688c32fc99e788c33838.tar.zst |
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>
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | src/screens/Profile/Header/ProfileHeaderLabeler.tsx | 6 | ||||
-rw-r--r-- | yarn.lock | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/package.json b/package.json index 417836903..3e27a8198 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "open-analyzer": "EXPO_PUBLIC_OPEN_ANALYZER=1 yarn build-web" }, "dependencies": { - "@atproto/api": "^0.12.19", + "@atproto/api": "^0.12.20", "@bam.tech/react-native-image-resizer": "^3.0.4", "@braintree/sanitize-url": "^6.0.2", "@discord/bottom-sheet": "bluesky-social/react-native-bottom-sheet", diff --git a/src/screens/Profile/Header/ProfileHeaderLabeler.tsx b/src/screens/Profile/Header/ProfileHeaderLabeler.tsx index 6588eb2e1..d266decb3 100644 --- a/src/screens/Profile/Header/ProfileHeaderLabeler.tsx +++ b/src/screens/Profile/Header/ProfileHeaderLabeler.tsx @@ -82,7 +82,7 @@ let ProfileHeaderLabeler = ({ preferences?.moderationPrefs.labelers.find(l => l.did === profile.did) const canSubscribe = isSubscribed || - (preferences ? preferences?.moderationPrefs.labelers.length < 9 : false) + (preferences ? preferences?.moderationPrefs.labelers.length <= 20 : false) const {mutateAsync: likeMod, isPending: isLikePending} = useLikeMutation() const {mutateAsync: unlikeMod, isPending: isUnlikePending} = useUnlikeMutation() @@ -328,8 +328,8 @@ function CantSubscribePrompt({ <Prompt.TitleText>Unable to subscribe</Prompt.TitleText> <Prompt.DescriptionText> <Trans> - We're sorry! You can only subscribe to ten labelers, and you've - reached your limit of ten. + We're sorry! You can only subscribe to twenty labelers, and you've + reached your limit of twenty. </Trans> </Prompt.DescriptionText> <Prompt.Actions> diff --git a/yarn.lock b/yarn.lock index 67ff046cb..700ddfe07 100644 --- a/yarn.lock +++ b/yarn.lock @@ -34,10 +34,10 @@ jsonpointer "^5.0.0" leven "^3.1.0" -"@atproto/api@^0.12.19": - version "0.12.19" - resolved "https://registry.yarnpkg.com/@atproto/api/-/api-0.12.19.tgz#6d842269b6b9cd3fc5864e12824d4fb04cc033cf" - integrity sha512-dsiTpjqBhjGwNW/qG/tLSgUQnmOSvd8hsQr5d8GCUDGK2AEHWl0KNgLPbwxIBEIo8Jg9NHsvqV7BMoix8YreIg== +"@atproto/api@^0.12.20": + version "0.12.20" + resolved "https://registry.yarnpkg.com/@atproto/api/-/api-0.12.20.tgz#2cada08c24bc61eb1775ee4c8010c7ed9dc5d6f3" + integrity sha512-nt7ZKUQL9j2yQ3tmCCueiIuc0FwdxZYn2fXdLYqltuxlaO5DmaqqULMBKeYJLq4GbvVl/G+ikPJccoSaMWDYOg== dependencies: "@atproto/common-web" "^0.3.0" "@atproto/lexicon" "^0.4.0" |