zulip/zerver
Sampriti Panda 34a4a1378d bugdown: Use specified realm, not sender realm, for rendering.
This changes bugdown to use the realm passed in by the caller (if any)
for rendering, fixing a problem where bots such as the notification
bot would have their messages rendering using the admin realm's
settings, not the settings of the realm their messages are being sent
into.

Also adds a test for the notification bot case.

Fixes #3215.
2017-01-21 21:37:57 -08:00
..
fixtures Add Zapier integration. 2017-01-20 10:43:18 -08:00
lib bugdown: Use specified realm, not sender realm, for rendering. 2017-01-21 21:37:57 -08:00
management send_password_reset_email.py: Migrate to send_mail from EmailMultiAlternatives. 2017-01-19 16:26:31 -08:00
migrations Add setting hiding private message content in desktop notifications. 2016-12-30 14:10:34 -08:00
templatetags minify: Clean up unnecessary tuple/list complexity. 2017-01-19 14:51:16 -08:00
tests bugdown: Use specified realm, not sender realm, for rendering. 2017-01-21 21:37:57 -08:00
tornado tornado: Remove unused caching code. 2017-01-19 16:36:31 -08:00
views bugdown: Use specified realm, not sender realm, for rendering. 2017-01-21 21:37:57 -08:00
worker render_incoming_message: Require a realm object. 2017-01-21 21:37:57 -08:00
__init__.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
apps.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
context_processors.py auth: Make min password length and strength configurable. 2017-01-10 04:55:41 -08:00
decorator.py zerver: Fix bare except clause. 2017-01-09 00:38:31 +00:00
exceptions.py Annotate zerver.exceptions, zerver.filters, zerver.logging_handlers. 2016-06-04 22:51:18 -07:00
filters.py pep8: Fix E301 pep8 violations. 2016-11-29 08:51:44 -08:00
forms.py Rename models.get_realm_by_string_id to get_realm. 2017-01-04 17:12:23 -08:00
logging_handlers.py zerver: Fix bare except clause. 2017-01-08 16:22:21 -08:00
middleware.py Rename models.get_realm_by_string_id to get_realm. 2017-01-04 17:12:23 -08:00
models.py Re-write models.get_realm to use Django convenience function. 2017-01-10 23:18:26 -08:00
static_header.txt Update static_header.txt with new license information. 2016-08-13 00:37:21 -07:00
storage.py pep8: Fix many rule E128 violations. 2016-12-03 13:33:31 -08:00