From f65ad3d59bfeb0663073ecee2fe123a5f6681f06 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 9 Jan 2013 10:46:19 -0500 Subject: [PATCH] Remove obsolete check for empty users string. This code is from a previous protocol where the users array was posted as a comma-separate list, rather than encoded via json. (imported from commit 3a2edfcbf250a7eef305b2e98018c1361cc2fffe) --- zephyr/tornadoviews.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/zephyr/tornadoviews.py b/zephyr/tornadoviews.py index 947448aa33..90d6c17ebf 100644 --- a/zephyr/tornadoviews.py +++ b/zephyr/tornadoviews.py @@ -72,12 +72,6 @@ def update_pointer(user_profile_id, new_pointer, pointer_updater): @internal_notify_view def notify_new_message(request): - # If a message for some reason has no recipients (e.g. it is sent - # by a bot to a stream that nobody is subscribed to), just skip - # the message gracefully - if request.POST["users"] == "": - return json_success() - recipient_profile_ids = map(int, json_to_list(request.POST['users'])) message = Message.objects.get(id=request.POST['message'])