zulip/zerver
Aditya Bansal 98a4e87e1d thumbor: Complete implementation of thumbnailing.
Various pieces of our thumbor-based thumbnailing system were already
merged; this adds the remaining pieces required for it to work:

* a THUMBOR_URL Django setting that controls whether thumbor is
  enabled on the Zulip server (and if so, where thumbor is hosted).

* Replaces the overly complicated prototype cryptography logic

* Adds a /thumbnail endpoint (supported both on web and mobile) for
  accessing thumbnails in messages, designed to support hosting both
  external URLs as well as uploaded files (and applying Zulip's
  security model for access to thumbnails of uploaded files).

* Modifies bugdown to, when THUMBOR_URL is set, render images with the
  `src` attribute pointing /thumbnail (to provide a small thumbnail
  for the image), along with adding a "data-original" attribute that
  can be used to access the "original/full" size version of the image.

There are a few things that don't work quite yet:
* The S3 backend support is incomplete and doesn't work yet.
* The error pages for unauthorized access are ugly.
* We might want to rename data-original and /thumbnail?size=original
  to use some other name, like "full", that better reflects the fact
  that we're potentially not serving the original image URL.
2018-07-15 00:39:41 +05:30
..
lib thumbor: Complete implementation of thumbnailing. 2018-07-15 00:39:41 +05:30
management Enable pycodestyle W605 (invalid escape sequence). 2018-07-03 16:54:46 +02:00
migrations models: Create delivery_email field in userprofile. 2018-07-12 12:30:20 +05:30
openapi api docs: Migrate POST /users/me/subscriptions to OpenAPI. 2018-07-03 20:15:34 +02:00
templatetags HTML validation: Remove obsolete attributes from <script>, <style>. 2018-07-13 10:27:23 +05:30
tests thumbor: Complete implementation of thumbnailing. 2018-07-15 00:39:41 +05:30
tornado event_queue: Add stream_email_notify. 2018-07-14 12:19:33 +05:30
views thumbor: Complete implementation of thumbnailing. 2018-07-15 00:39:41 +05:30
webhooks webhooks/gitlab: Include title in Issue Hook event messages. 2018-07-14 09:38:11 +05:30
worker registration: Use tokenized noreply address in user invite. 2018-06-23 12:03:30 -07:00
__init__.py
apps.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
context_processors.py custom profile fields: Extract a separate various for whether enabled. 2018-06-07 11:35:04 -07:00
decorator.py 2FA: Add zulip_otp_required decorator. 2018-05-23 15:46:57 -07:00
filters.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
forms.py signup: Prevent users from signing up with email containing +. 2018-06-23 12:03:30 -07:00
logging_handlers.py test_logging_handlers: Mock out `git describe` because can be slow. 2018-03-23 18:24:51 -07:00
middleware.py zerver: Change use of typing.Text to str. 2018-05-12 15:22:39 -07:00
models.py models: Document RealmAuditLog. 2018-07-13 18:38:33 +05:30
signals.py auth: Added time conversion in new login emails. 2018-06-07 08:40:22 -07:00
static_header.txt