mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-10-31 22:19:00 +00:00
Merge pull request #2832 from bookwyrm-social/fix-api/instance
Fix language constant to show correct lang in API
This commit is contained in:
commit
ed5471c7ab
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ from django.utils import timezone
|
|||
from django.views.decorators.http import require_GET
|
||||
|
||||
from bookwyrm import models
|
||||
from bookwyrm.settings import DOMAIN, VERSION
|
||||
from bookwyrm.settings import DOMAIN, VERSION, LANGUAGE_CODE
|
||||
|
||||
|
||||
@require_GET
|
||||
|
@ -110,7 +110,7 @@ def instance_info(_):
|
|||
"status_count": status_count,
|
||||
},
|
||||
"thumbnail": logo,
|
||||
"languages": ["en"],
|
||||
"languages": [LANGUAGE_CODE[:2]],
|
||||
"registrations": site.allow_registration,
|
||||
"approval_required": not site.allow_registration
|
||||
and site.allow_invite_requests,
|
||||
|
|
Loading…
Reference in a new issue