zulip/zerver/views
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
..
development python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
__init__.py
alert_words.py request: Rename validator parameter of REQ to json_validator. 2021-04-07 14:13:06 -07:00
archive.py request: Move realm from the request to ZulipRequestNotes. 2021-07-14 12:01:07 -07:00
attachments.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
auth.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
compatibility.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
custom_profile_fields.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
digest.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
documentation.py request: Move miscellaneous attributes to ZulipRequestNotes. 2021-07-14 12:01:07 -07:00
drafts.py exceptions: Add ResourceNotFoundError. 2021-07-05 11:02:12 -07:00
email_mirror.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
events_register.py request: Store client information using ZulipRequestNotes. 2021-07-14 12:01:07 -07:00
home.py settings: Convert settings_overlay.html to handlebars template. 2021-07-15 08:59:23 -07:00
hotspots.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
invite.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
message_edit.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
message_fetch.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
message_flags.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
message_send.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
muting.py muting: Add support for muting deactivated users. 2021-07-07 10:44:18 -07:00
portico.py plans_page: Fix broken redirection to /accounts/login/. 2021-06-15 16:49:01 -07:00
presence.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
push_notifications.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
reactions.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
realm.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
realm_domains.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
realm_emoji.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
realm_export.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
realm_icon.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
realm_linkifiers.py exceptions: Add ValidationFailureError. 2021-07-06 09:44:45 -07:00
realm_logo.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
realm_playgrounds.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
registration.py registration: Collect organization type on sign-up. 2021-07-15 09:58:27 -07:00
report.py request: Move log_data from HttpRequest to ZulipRequestNotes. 2021-07-14 12:01:05 -07:00
storage.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
streams.py api: Return user IDs, not display emails, in subscribers endpoints. 2021-07-18 11:32:28 -07:00
submessage.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
thumbnail.py requirements: Remove Thumbor. 2021-05-06 20:07:32 -07:00
tutorial.py api: Fix encoding of strings in tutorial endpoint. 2021-05-07 14:06:54 -07:00
typing.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
unsubscribe.py unsubscribe: Configure as csrf_exempt. 2021-04-28 15:33:32 -07:00
upload.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
user_groups.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
user_settings.py api: Remove "full_name" and "account_email" from response of '/settings'. 2021-07-16 16:10:15 -07:00
users.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
video_calls.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
zephyr.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00