zulip/zerver/lib
Daniel Bradburn 1e65cdd072 emoji: Only resize custom emoji that need it.
This additional logic to prevent resizing is certain circumstances
(file size, dimensions) is necessary because the pillow gif handling
code seems to be rather flaky with regards to handling gif color
palletes, causing broken gifs after resizing.  The workaround is to
only resize when absolutely necessary (e.g. because the file is larger
than 128x128 or 128KB).

Fixes #10351.
2019-01-29 10:33:50 -08:00
..
bugdown api_docs: Specify max width for long code examples. 2019-01-28 22:39:54 -03:30
url_preview preview: Hash cache keys for preview urls. 2018-10-14 09:28:57 -07:00
webhooks webhooks/gitlab: Support issues with multiple assignees. 2018-12-27 20:15:00 -08:00
__init__.py
actions.py billing: Update license ledger when users are added and removed. 2019-01-28 16:04:11 -08:00
addressee.py addressee: Add helper to check for missing or empty topic. 2019-01-28 11:42:26 -08:00
alert_words.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
api_test_helpers.py api docs: Document the custom emoji upload endpoint. 2018-12-14 14:19:28 -08:00
attachments.py
avatar.py python: Clean up various if False blocks. 2018-12-17 11:14:47 -08:00
avatar_hash.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
bot_config.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
bot_lib.py bot_lib: Raise exception when PM recipient list is empty. 2019-01-08 16:19:20 -08:00
bot_storage.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
bulk_create.py models: Add USER_CREATED event type constant to RealmAuditLog. 2018-07-10 15:42:26 +05:30
cache.py docs: Refactor BS work with use of cache_with_key. 2019-01-28 15:21:52 -08:00
cache_helpers.py email: Convert accounts code to use delivery_email. 2018-12-06 16:21:38 -08:00
camo.py camo: Add endpoint to handle camo requests. 2019-01-04 10:27:04 -08:00
ccache.py str_utils: Move force_bytes into ccache.py. 2018-05-15 19:07:32 -07:00
context_managers.py
create_user.py user: Extend `do_create_user` for guest users. 2018-12-30 10:16:17 -08:00
db.py python: Remove unnecessary NonBinaryStr TypeVar. 2018-11-27 11:44:09 -08:00
debug.py mypy: Set local_partial_types = True. 2018-05-21 22:41:00 -07:00
dev_ldap_directory.py tests: Use `init_fakeldap()` in `test_signup.py`. 2019-01-17 10:16:48 -08:00
digest.py send_email: Add support for passing language into send_future_email. 2019-01-09 17:47:58 -08:00
domains.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
email_mirror.py email_mirror: Handle case where email body is empty. 2019-01-15 11:30:15 -08:00
emoji.py emoji: Move `EMOTICON_CONVERSIONS` mapping to build_emoji infra. 2018-07-23 12:35:08 -07:00
error_notify.py emails: Fix subject -> email_subject in error_notify.py. 2019-01-01 20:48:59 -08:00
events.py user status: Add "status_text" support in the backend. 2019-01-24 09:46:35 -08:00
exceptions.py decorator: Set an error code for invalid API key errors. 2019-01-05 11:29:34 -08:00
export.py export: Avoid hardcoded paths in /tmp. 2019-01-15 16:05:51 -08:00
feedback.py feedback: Generate the ticket number from the message ID. 2019-01-15 16:56:49 -08:00
fix_unreads.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
generate_test_data.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
hotspots.py signup: Copy hotspots when importing settings. 2018-06-16 08:50:49 -07:00
html_diff.py
i18n.py i18n: Pass translation data in page_params. 2018-05-30 08:57:26 -07:00
import_realm.py import realm: Use processes for resizing avatar images. 2019-01-25 12:37:12 -08:00
initial_password.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
integrations.py webhooks/opsgenie: Update docs, logo and screenshots. 2018-12-29 10:29:16 -08:00
json_encoder_for_html.py
logging_util.py settings: Fix double negative in LOGGING_NOT_DISABLED. 2018-03-21 18:03:05 -07:00
management.py management: Extend `sync_ldap_user_data` to allow update of a single user. 2019-01-13 18:51:50 -08:00
mdiff.py mypy: Amend diff_strings to return str or raise DiffException. 2018-02-13 11:40:51 -08:00
mention.py markdown: Add _@**Name** syntax for silent mentions. 2019-01-16 16:01:06 -08:00
message.py message: Store the value of first_visible_message_id in Realm table. 2018-12-12 15:11:17 -08:00
migrate.py migrations: Fix do_batch_update for postgres 10. 2018-12-16 17:46:11 -08:00
mobile_auth_otp.py mobile: Make otp_encrypt_api_key accept API keys. 2018-08-08 16:45:40 -07:00
name_restrictions.py signup: Add opayq.com to disposable domain whitelist. 2018-08-13 10:56:47 -07:00
narrow.py topic -> subject: Extract get_topic_from_message_info(). 2018-11-14 23:24:06 -08:00
notifications.py org settings: Add realm level setting for missed message content in email. 2019-01-25 14:34:10 -08:00
onboarding.py Extract get_turtle_message(). 2018-11-14 23:24:06 -08:00
openapi.py Minimize race conditions for reading zulip.yaml. 2018-09-12 11:07:20 -07:00
outgoing_webhook.py outgoing webhooks: Set a Zulip-specific user-agent. 2019-01-09 10:45:46 -08:00
parallel.py
profile.py
push_notifications.py push_notifications: Don't rename import for lxml.html. 2019-01-07 13:15:46 -08:00
queue.py mypy: Remove some now-unnecessary type: ignores. 2018-03-28 10:39:05 -07:00
rate_limiter.py rate_limiter: Improve handling of deadlocks. 2018-12-12 12:19:01 -08:00
realm_icon.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
realm_logo.py settings: Add support for customizing the top-left logo. 2018-12-18 12:44:52 -08:00
redis_utils.py
request.py webhook_decorator: Support notifying bot owner on invalid JSON. 2018-11-14 22:35:56 -08:00
request.pyi extract_recipients: Support user IDs. 2019-01-08 19:08:49 -03:30
response.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
rest.py report: Allow error-reporting views from unauthed users. 2018-12-16 15:44:48 -08:00
retention.py retention: move_messages_to_archive should accept multiple message ids. 2018-10-11 15:31:12 -07:00
send_email.py send_email: Add support for passing language into send_future_email. 2019-01-09 17:47:58 -08:00
sessions.py sessions: Suppress coverage error until we can debug. 2018-12-01 10:08:57 -08:00
soft_deactivation.py soft deactivation: Handle case where a user has no message history. 2018-12-16 18:52:20 -08:00
sqlalchemy_utils.py mypy: Set local_partial_types = True. 2018-05-21 22:41:00 -07:00
statistics.py
storage.py python: Remove now-unnecessary str_utils library. 2018-11-27 11:57:54 -08:00
stream_recipient.py
stream_subscription.py Mypy: Use models.py QuerySet annotation approach in stream_subscription.py. 2018-03-15 12:54:43 -07:00
stream_topic.py refactor: Remove "subject" from stream_topic.py. 2019-01-01 20:48:56 -08:00
streams.py streams: Prevent members from creating admin-only streams. 2019-01-24 10:51:45 -08:00
subdomains.py Enable pycodestyle W605 (invalid escape sequence). 2018-07-03 16:54:46 +02:00
test_classes.py integration tests: Add check for new messages. 2019-01-28 14:56:42 -08:00
test_data.source.txt
test_fixtures.py test_fixtures: Fix bug with run_db_migrations for test platform. 2018-07-09 14:17:53 +05:30
test_helpers.py tests: Add capture_event() helper. 2019-01-02 09:12:10 -08:00
test_runner.py zerver/lib: Change use of typing.Text to str. 2018-05-12 15:22:39 -07:00
tex.py Enable pycodestyle W605 (invalid escape sequence). 2018-07-03 16:54:46 +02:00
thumbnail.py camo: Add endpoint to handle camo requests. 2019-01-04 10:27:04 -08:00
timeout.py mypy: Add assertion in timeout.py. 2018-04-25 08:58:55 -07:00
timestamp.py
timezone.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
topic.py topics: Fix messages_for_topic to use iexact matching. 2019-01-24 17:55:15 -08:00
topic_mutes.py Extract topic_match_sa() helper. 2018-11-07 10:03:53 -08:00
type_debug.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
types.py extract_recipients: Support user IDs. 2019-01-08 19:08:49 -03:30
unminify.py unminify: Clean up unnecessary repetition of webpack:/// URLs. 2018-08-03 15:56:40 -07:00
upload.py emoji: Only resize custom emoji that need it. 2019-01-29 10:33:50 -08:00
url_encoding.py topic -> subject: Extract get_topic_from_message_info(). 2018-11-14 23:24:06 -08:00
user_agent.py user_agent: Use re.X to make the regex a little more readable. 2018-12-05 14:58:13 -08:00
user_groups.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
user_status.py user status: Add "status_text" support in the backend. 2019-01-24 09:46:35 -08:00
users.py signup: Set oldest account as default option in import settings. 2018-12-29 15:01:09 -08:00
utils.py utils: Add process_list_in_batches(). 2018-10-15 10:54:23 -07:00
validator.py validators: Add optional keys feature to check_dict and check_dict_only. 2019-01-22 10:03:21 -08:00
video_calls.py zoom: Fix handling of 201 status codes from zoom API. 2019-01-16 15:37:06 -08:00
widget.py widgets: Remove ALLOW_SUB_MESSAGES flag and enable widgets by default. 2019-01-29 09:34:14 -08:00
zcommand.py zcommand: Fix broken switch mode message. 2018-08-08 11:29:49 -07:00
zephyr.py python: Remove now-unnecessary str_utils library. 2018-11-27 11:57:54 -08:00