mirror of https://github.com/zulip/zulip.git
reactions: Fix support for "+1" emoji.
Previously, we didn't allow the `+1` character in the URL pattern.
This commit is contained in:
parent
a61386cbbc
commit
965a22e2bd
|
@ -207,7 +207,7 @@ v1_api_and_json_patterns = [
|
|||
# reactions -> zerver.view.reactions
|
||||
# PUT adds a reaction to a message
|
||||
# DELETE removes a reaction from a message
|
||||
url(r'^messages/(?P<message_id>[0-9]+)/emoji_reactions/(?P<emoji_name>[0-9a-zA-Z.\-_]+(?<![.\-_]))$',
|
||||
url(r'^messages/(?P<message_id>[0-9]+)/emoji_reactions/(?P<emoji_name>[+0-9a-zA-Z.\-_]+(?<![.\-_]))$',
|
||||
rest_dispatch,
|
||||
{'PUT': 'zerver.views.reactions.add_reaction_backend',
|
||||
'DELETE': 'zerver.views.reactions.remove_reaction_backend'}),
|
||||
|
|
Loading…
Reference in New Issue