From 077c05fc7898ceab3f6f376b5a547ba5fa4d81ae Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 14 Aug 2017 16:10:27 -0700 Subject: [PATCH] decorator: Remove ancient client_name hack for iOS. The old iOS app has been gone from the app store for 8 months, never had a huge userbase, and its latest version didn't need this hack. So this code is unlikely to do anything in the future; remove it to declutter our authentication decorators codebase. --- zerver/decorator.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/zerver/decorator.py b/zerver/decorator.py index 62ba354efc..49e95b4f58 100644 --- a/zerver/decorator.py +++ b/zerver/decorator.py @@ -169,11 +169,6 @@ def process_client(request, user_profile, is_json_view=False, client_name=None, if client_name is None: client_name = get_client_name(request, is_json_view) - # Transitional hack for early 2014. Eventually the ios clients - # will all report ZulipiOS, and we can remove the next couple lines. - if client_name == 'ios': - client_name = 'ZulipiOS' - request.client = get_client(client_name) if not remote_server_request: update_user_activity(request, user_profile)