mirror of https://github.com/zulip/zulip.git
001847ac5b
This commit adds the following: 1. A reaction model that consists of a user, a message and an emoji that are unique together (a user cannot react to a particular message more than once with the same emoji) 2. A reaction event that looks like: { 'type': 'reaction', 'op': 'add', 'message_id': 3, 'emoji_name': 'doge', 'user': { 'user_id': 1, 'email': 'hamlet@zulip.com', 'full_name': 'King Hamlet' } } 3. A new API endpoint, /reactions, that accepts POST requests to add a reaction to a message 4. A migration to add the new model to the database 5. Tests that check that (a) Invalid requests cannot be made (b) The reaction event body contains all the info (c) The reaction event is sent to the appropriate users (d) Reacting more than once fails It is still missing important features like removing emoji and fetching them alongside messages. |
||
---|---|---|
.. | ||
webhooks | ||
__init__.py | ||
alert_words.py | ||
auth.py | ||
events_register.py | ||
integrations.py | ||
invite.py | ||
messages.py | ||
pointer.py | ||
presence.py | ||
push_notifications.py | ||
reactions.py | ||
realm.py | ||
realm_emoji.py | ||
realm_filters.py | ||
report.py | ||
streams.py | ||
tutorial.py | ||
typing.py | ||
unsubscribe.py | ||
upload.py | ||
user_settings.py | ||
users.py | ||
zephyr.py |