reactions: Rename legacy reactions for greater clarity.

This commit is contained in:
Tim Abbott
2017-11-20 14:04:07 -08:00
parent 87b523f3ef
commit 80a2a36dd1
2 changed files with 4 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ def create_historical_message(user_profile, message):
flags=UserMessage.flags.historical | UserMessage.flags.read)
@has_request_variables
def add_reaction_backend(request, user_profile, message_id, emoji_name):
def add_reaction_legacy(request, user_profile, message_id, emoji_name):
# type: (HttpRequest, UserProfile, int, Text) -> HttpResponse
# access_message will throw a JsonableError exception if the user
@@ -50,7 +50,7 @@ def add_reaction_backend(request, user_profile, message_id, emoji_name):
return json_success()
@has_request_variables
def remove_reaction_backend(request, user_profile, message_id, emoji_name):
def remove_reaction_legacy(request, user_profile, message_id, emoji_name):
# type: (HttpRequest, UserProfile, int, Text) -> HttpResponse
# access_message will throw a JsonableError exception if the user

View File

@@ -182,8 +182,8 @@ v1_api_and_json_patterns = [
# DELETE removes a reaction from a message
url(r'^messages/(?P<message_id>[0-9]+)/emoji_reactions/(?P<emoji_name>.*)$',
rest_dispatch,
{'PUT': 'zerver.views.reactions.add_reaction_backend',
'DELETE': 'zerver.views.reactions.remove_reaction_backend'}),
{'PUT': 'zerver.views.reactions.add_reaction_legacy',
'DELETE': 'zerver.views.reactions.remove_reaction_legacy'}),
# attachments -> zerver.views.attachments
url(r'^attachments$', rest_dispatch,