zulip/zerver/views
Steve Howell 0e106a2488 Add client_gratavar support to GET /messages.
Clients fetching messages can now specify that they are able
to compute their avatar, and if they set client_gratavar to
True in the request (w/our normal encoding scheme), then the
backend will not compute it, and the payload will be smaller.

The fix starts with get_messages_backend.  The flag gets
passed down through these functions:

    * MessageDict.post_process_dicts.
    * MessageDict.set_sender_avatar.

We also fix up the callers for post_process_dicts to explicitly
pass in the client_gravatar path, but for now they all just hard
code the value to False.
2017-10-20 15:49:21 -07:00
..
__init__.py views: Rename __init__.py to zerver.views.registration. 2017-01-08 16:21:15 -08:00
alert_words.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
attachments.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
auth.py subdomains: Extract zerver.lib.subdomains library. 2017-10-18 22:27:48 -07:00
compatibility.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
custom_profile_fields.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
email_log.py email_log.py: Remove redundant shebang. 2017-10-12 11:18:45 -07:00
email_mirror.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
events_register.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
home.py i18n: Store language name in session; not locale. 2017-10-19 17:56:49 -07:00
hotspots.py hotspots: Prevent bot users from accessing endpoint. 2017-07-31 13:08:06 -07:00
integrations.py subdomains: Extract zerver.lib.subdomains library. 2017-10-18 22:27:48 -07:00
invite.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
messages.py Add client_gratavar support to GET /messages. 2017-10-20 15:49:21 -07:00
muting.py Have topic_is_muted take a stream_id. 2017-10-05 09:32:16 -07:00
pointer.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
presence.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
push_notifications.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
reactions.py reactions: Add missing mypy import for Message. 2017-10-18 08:59:29 -07:00
realm.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
realm_domains.py subdomains: Hardcode can_add_realm_domains=True. 2017-10-02 16:32:10 -07:00
realm_emoji.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
realm_filters.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
realm_icon.py Add size limit for uploading user avatars and realm icons. 2017-03-07 22:13:01 -08:00
registration.py subdomains: Pass whether root domain is available to registration. 2017-10-18 22:53:10 -07:00
report.py urls: Move the report endpoints to be API-style routes. 2017-10-17 22:05:56 -07:00
streams.py Avoid shadowing stream variables. 2017-10-08 20:18:34 -07:00
tutorial.py urls: Move the json/tutorial_status endpoint to be an API-style route. 2017-10-09 15:13:33 -07:00
typing.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
unsubscribe.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
upload.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
user_settings.py settings: Mention about /emails after sending change email mail. 2017-10-04 08:20:29 -07:00
users.py Support client_gravatar in /json/users endpoint. 2017-10-12 14:00:41 -07:00
zephyr.py zephyr: Update path to process_cache for repository split. 2017-10-05 12:35:20 -07:00