Fixing follow from subscribe page. Fixes #2215 (#2229)

This commit is contained in:
Dessalines 2023-11-22 17:44:42 -05:00 committed by GitHub
parent fa4695738c
commit 156cfccf34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -185,7 +185,7 @@ export class Communities extends Component<any, CommunitiesState> {
{
i: this,
communityId: cv.community.id,
follow: false,
follow: true,
},
this.handleFollow,
)}
@ -193,7 +193,7 @@ export class Communities extends Component<any, CommunitiesState> {
{
i: this,
communityId: cv.community.id,
follow: true,
follow: false,
},
this.handleFollow,
)}

View file

@ -10,7 +10,7 @@ popd
# look for unused translations
for langfile in lemmy-translations/translations/*.json; do
lang=$(basename $langfile .json)
if ! grep -q "\"./translations/$lang\"" src/shared/i18next.ts; then
if ! grep -q "\"./translations/$lang\"" src/shared/services/I18NextService.ts; then
echo "Unused language $lang"
fi
done