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:
Zixuan James Li
2022-06-12 15:31:23 -04:00
committed by Tim Abbott
parent b89e0f6771
commit 789b66ff3b
2 changed files with 11 additions and 7 deletions

View File

@@ -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,