zulip/zerver
PieterCK a228699108 slack_incoming: Use Slack text reformatters from data import.
This commit updates the Slack incoming webhook endpoint to use the same
Slack reformatting functions (`convert_to_zulip_markdown` and
`replace_links`) that are used for Slack data import and cleaning up any
duplicative functions.

This was previously not possible because the Slack reformatting regex in
`slack_message_conversion.py` could not handle these cases:

- Formatting applied to non-ASCII characters (e.g., emoji).

- Formatted strings separated by exactly one character.

- Formatted strings appearing immediately after a new line.

Fixes part of #31162.
2025-04-28 20:49:10 -07:00
..
actions ldap: Fix the syncing of user role via AUTH_LDAP_USER_FLAGS_BY_GROUP. 2025-04-28 17:44:56 -07:00
data_import slack_incoming: Use Slack text reformatters from data import. 2025-04-28 20:49:10 -07:00
integration_fixtures/nagios
lib integrations: Handle approval/unapproval for GitLab MRs. 2025-04-28 20:26:29 -07:00
management thumbnail: Add a tool to re-thumbnail spinners, or process old images. 2025-04-23 17:41:51 -07:00
migrations models: Add request_timestamp field to ScheduledMessage table. 2025-04-24 09:43:58 -07:00
models models: Add request_timestamp field to ScheduledMessage table. 2025-04-24 09:43:58 -07:00
openapi users: Return true for admins for is_moderator. 2025-04-22 11:24:49 -07:00
tests slack_regex: Fix overlapping capture groups. 2025-04-28 20:49:10 -07:00
tornado streams: Fix events send when archiving and unarchiving streams. 2025-04-08 12:41:09 -07:00
transaction_tests test_user_groups: Add durable=True to the independent transaction. 2024-11-21 14:55:15 -08:00
views signup: Add optional Altcha to realm registration. 2025-04-23 17:18:40 -07:00
webhooks slack_incoming: Use Slack text reformatters from data import. 2025-04-28 20:49:10 -07:00
worker send_email: Add a flag to force all emails through the queue. 2025-04-22 10:26:25 -07:00
__init__.py
apps.py ruff: Fix UP007 Use X | Y for type annotations. 2024-07-13 22:28:22 -07:00
context_processors.py portico: Replace "Find accounts" link with "Log in". 2025-01-24 14:55:47 -08:00
decorator.py settings: Add "can_manage_billing_group" realm setting. 2025-03-10 09:36:30 -07:00
filters.py filters: Do not report AVATAR_SALT, or other salts. 2025-03-13 09:36:07 -07:00
forms.py signup: Add optional Altcha to realm registration. 2025-04-23 17:18:40 -07:00
logging_handlers.py ruff: Fix UP007 Use X | Y for type annotations. 2024-07-13 22:28:22 -07:00
middleware.py middleware: Parse Accept header properly. 2025-03-26 22:29:09 -07:00
signals.py send_email: Set the Date header according to local enqueue time. 2025-03-10 16:48:08 -07:00