mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
api_docs: Fix 500 error on /api/register-remote-push-device.
`settings.ZULIP_SERVICES_URL` is used to construct curl example for `/api/register-remote-push-device`. On zulip cloud `settings.ZULIP_SERVICES_URL=None`, it resulted in 500 error on visiting that page. This commit fixes the bug by using "https://push.zulipchat.com" as the default value if `settings.ZULIP_SERVICES_URL=None`. The doc already mentions that the endpoint is meant to be used by self-hosted servers, so the default value makes sense if ZULIP_SERVICES_URL=None.
This commit is contained in:
committed by
Tim Abbott
parent
39b560e611
commit
271aba001c
@@ -231,7 +231,7 @@ PASSWORD_MIN_GUESSES = 10000
|
||||
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
|
||||
SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # 2 weeks
|
||||
|
||||
ZULIP_SERVICES_URL = "https://push.zulipchat.com"
|
||||
ZULIP_SERVICES_URL: str | None = "https://push.zulipchat.com"
|
||||
ZULIP_SERVICE_PUSH_NOTIFICATIONS = False
|
||||
|
||||
# For this setting, we need to have None as the default value, so
|
||||
|
||||
Reference in New Issue
Block a user