mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 10:03:56 +00:00
Rename check_compatibility to check_global_compatibility.
This commit is contained in:
@@ -5,7 +5,7 @@ from typing import Any, List, Dict, Optional
|
||||
from zerver.lib.response import json_error, json_success
|
||||
from zerver.lib.user_agent import parse_user_agent
|
||||
|
||||
def check_compatibility(request: HttpRequest) -> HttpResponse:
|
||||
def check_global_compatibility(request: HttpRequest) -> HttpResponse:
|
||||
user_agent = parse_user_agent(request.META["HTTP_USER_AGENT"])
|
||||
if user_agent['name'] == "ZulipInvalid":
|
||||
return json_error("Client is too old")
|
||||
|
||||
@@ -599,7 +599,7 @@ urls += [
|
||||
# Used as a global check by all mobile clients, which currently send
|
||||
# requests to https://zulipchat.com/compatibility almost immediately after
|
||||
# starting up.
|
||||
url(r'^compatibility$', zerver.views.compatibility.check_compatibility),
|
||||
url(r'^compatibility$', zerver.views.compatibility.check_global_compatibility),
|
||||
|
||||
# This json format view used by the mobile apps accepts a username
|
||||
# password/pair and returns an API key.
|
||||
|
||||
Reference in New Issue
Block a user