zulip/zerver
Tim Abbott 95606a7347 api: Return user IDs, not display emails, in subscribers endpoints.
Sometime in the deep past, Zulip the GET /users/me/subscriptions
endpoint started returning subscribers.  We noticed this and made it
optional via the include_subscribers parameter in
1af72a2745, however, we didn't notice
that they were being returned as emails rather than user IDs.

We migrated the core /register code paths to use subscriber IDs years
ago; this change completes that for the endpoints we forgot about.

The documentation allowed this error because we apparently had no
tests for this code path that used the actual API.
2021-07-18 11:32:28 -07:00
..
data_import data_import: Rename mattermost_user to user_handler. 2021-07-15 14:28:36 -07:00
integration_fixtures/nagios tests: Add a test for fixtures for non-webhook integrations. 2021-04-28 08:16:51 -07:00
lib api: Return user IDs, not display emails, in subscribers endpoints. 2021-07-18 11:32:28 -07:00
management python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
migrations python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
openapi api: Return user IDs, not display emails, in subscribers endpoints. 2021-07-18 11:32:28 -07:00
tests api: Return user IDs, not display emails, in subscribers endpoints. 2021-07-18 11:32:28 -07:00
tornado python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
views api: Return user IDs, not display emails, in subscribers endpoints. 2021-07-18 11:32:28 -07:00
webhooks python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
worker worker: Rewrite MissedMessageWorker to not be lossy. 2021-07-13 17:21:38 -07:00
__init__.py django: Upgrade Zulip to Django 3.2 LTS. 2021-05-03 08:36:22 -07:00
apps.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
context_processors.py request: Store client information using ZulipRequestNotes. 2021-07-14 12:01:07 -07:00
decorator.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
filters.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
forms.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
logging_handlers.py logging_handlers: Remove STAGING_ERROR_NOTIFICATIONS setting. 2021-07-07 09:26:02 -07:00
middleware.py Revert "request: Refactor to record rate limit data using ZulipRequestNotes." 2021-07-16 09:01:20 -07:00
models.py cache: Fix typing for post_save and post_delete flush handlers. 2021-07-16 13:14:04 -07:00
signals.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00