actions: Remove acting_client parameter from bulk_remove_subscriptions.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-08-13 17:28:52 -07:00
committed by Tim Abbott
parent 0b795e492f
commit 0d061f44c1
8 changed files with 11 additions and 23 deletions

View File

@@ -88,7 +88,6 @@ from zerver.models import (
UserProfile,
clear_supported_auth_backends_cache,
flush_per_request_caches,
get_client,
get_display_recipient,
get_realm,
get_realm_stream,
@@ -1003,9 +1002,8 @@ Output:
return stream
def unsubscribe(self, user_profile: UserProfile, stream_name: str) -> None:
client = get_client("website")
stream = get_stream(stream_name, user_profile.realm)
bulk_remove_subscriptions([user_profile], [stream], client, acting_user=None)
bulk_remove_subscriptions([user_profile], [stream], acting_user=None)
# Subscribe to a stream by making an API request
def common_subscribe_to_streams(