mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
decorator: Remove unnecessary flag for process_client.
We can express the same idea more simply by not passing `user` in cases where it isn't valid for UserActivity. Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
committed by
Tim Abbott
parent
b89e0f6771
commit
789b66ff3b
@@ -949,7 +949,7 @@ def check_server_incompatibility(request: HttpRequest) -> bool:
|
||||
@csrf_exempt
|
||||
def api_get_server_settings(request: HttpRequest) -> HttpResponse:
|
||||
# Log which client is making this request.
|
||||
process_client(request, request.user, skip_update_user_activity=True)
|
||||
process_client(request)
|
||||
result = dict(
|
||||
authentication_methods=get_auth_backends_data(request),
|
||||
zulip_version=ZULIP_VERSION,
|
||||
|
||||
Reference in New Issue
Block a user