zulip/zerver/views
Yago González 9244a6740e reactions: Make the emoji_code optional for adding a rection.
Complete, correct implementations of Zulip's emoji reactions API need
to send both emoji_code and emoji_name in order to add a reaction;
this is important for corner cases around clicking on a reaction in a
message that was first reacted to a year ago, when the emoji
name->code mappings have changed for the given code point in the
intervening time.

However, for folks building tools using the Zulip API, that corner
case is not particularly common; as a result, it makes sense to offer
an interface that allows adding a reaction by only specifying the
emoji name.

This is why the only field that needs to be required is emoji_name,
which can now be mapped to a single emoji. Both fields will be
necessary when "voting" an old reaction, but since we stil allow
specifying the two of them, these changes offer retrocompatibility.
2018-07-11 19:34:48 +05:30
..
__init__.py views: Rename __init__.py to zerver.views.registration. 2017-01-08 16:21:15 -08:00
alert_words.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
archive.py views/archive.py: Make 'StreamDoesNotExist' return a error msg page. 2018-05-02 15:23:33 -07:00
attachments.py attachments: Send events for attachment updates. 2018-05-04 16:22:27 -07:00
auth.py auth: Fix bug with subdomains and GitHub auth causing apparent logouts. 2018-07-10 16:49:00 +05:30
compatibility.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
custom_profile_fields.py custom fields: Allow list of users in user type of custom fields. 2018-06-16 09:37:49 -07:00
email_log.py zerver: Migrate away from six. 2018-05-09 18:38:25 +00:00
email_mirror.py mypy: Use Python 3 type syntax in zerver/views/email_mirror.py. 2017-12-28 07:26:44 -05:00
events_register.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
home.py invite: Make inviting new users inaccessible for guest users. 2018-06-16 06:33:13 -07:00
hotspots.py views: Fix imports of REQ/has_request_variables from the wrong place. 2017-10-27 15:07:31 -07:00
integrations.py templates: Make zulip_default_context available in API endpoints. 2018-06-01 11:32:18 -07:00
invite.py invite: Make inviting new users inaccessible for guest users. 2018-06-16 06:33:13 -07:00
messages.py Enable pycodestyle W605 (invalid escape sequence). 2018-07-03 16:54:46 +02:00
muting.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
pointer.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
presence.py presence: Extract and use get_active_user helper. 2018-05-20 19:07:29 -07:00
push_notifications.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
reactions.py reactions: Make the emoji_code optional for adding a rection. 2018-07-11 19:34:48 +05:30
realm.py org setting: Add time limits for message deleting. 2018-04-27 19:22:28 -07:00
realm_domains.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
realm_emoji.py emoji: Make uploading new realm emoji inaccessible for guest users. 2018-06-16 06:33:14 -07:00
realm_filters.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
realm_icon.py zerver/views: Use python 3 syntax for typing. 2017-10-26 21:58:22 -07:00
registration.py signup: Prevent users from signing up with email containing +. 2018-06-23 12:03:30 -07:00
report.py mypy: Set local_partial_types = True. 2018-05-21 22:41:00 -07:00
storage.py mypy: Migrate views/storage.py to python3.5 type annotations. 2018-03-12 11:23:30 -07:00
streams.py Replace remaining user-facing occurences of the term "invite-only". 2018-06-27 12:34:29 -07:00
submessage.py submessages: Just send content for submessage events. 2018-05-30 13:53:11 -07:00
tutorial.py mypy: Use Python 3 syntax for typing in views/tutorial.py. 2017-12-08 18:34:26 -08:00
typing.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
unsubscribe.py requirements: Upgrade pyflakes to 2.0.0. 2018-05-24 11:31:36 -07:00
upload.py upload: Remove unnecessary use of has_request_variables. 2018-07-01 01:47:03 -07:00
user_groups.py guest: Restrict guest access to user group creation and updation. 2018-06-19 11:04:14 -07:00
user_settings.py user_settings: Prevent LDAP users from setting a Zulip password. 2018-05-28 22:47:47 -07:00
users.py bots settings: Improve API for editing bot owners to refer to users by ID. 2018-06-23 12:47:50 -07:00
zephyr.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00