diff --git a/zerver/lib/home.py b/zerver/lib/home.py index aabcec6783..d38fa0d994 100644 --- a/zerver/lib/home.py +++ b/zerver/lib/home.py @@ -1,5 +1,4 @@ import calendar -import os import time from dataclasses import dataclass from urllib.parse import urlsplit @@ -110,7 +109,7 @@ def build_page_params_for_home_page_load( if user_profile is not None: client = RequestNotes.get_notes(request).client assert client is not None - partial_subscribers = os.environ.get("PARTIAL_SUBSCRIBERS") is not None + partial_subscribers = True state_data = do_events_register( user_profile, realm, diff --git a/zerver/lib/subscription_info.py b/zerver/lib/subscription_info.py index a9ef030032..e7b40d53b0 100644 --- a/zerver/lib/subscription_info.py +++ b/zerver/lib/subscription_info.py @@ -898,8 +898,9 @@ def gather_subscriptions_helper( } # If the client only wants partial subscriber data, we send: - # - all subscribers (full data) for channels with fewer than 250 subscribers - # - only bots and recently active users for channels with >= 250 subscribers + # - all subscribers (full data) for channels with fewer than + # MIN_PARTIAL_SUBSCRIBERS_CHANNEL_SIZE subscribers. + # - only bots and recently active users for other channels. streams_to_partially_fetch = [] if include_subscribers == "partial": streams_to_partially_fetch = [ diff --git a/zproject/default_settings.py b/zproject/default_settings.py index 606056f308..a9d9a8f93f 100644 --- a/zproject/default_settings.py +++ b/zproject/default_settings.py @@ -741,4 +741,4 @@ SCIM_CONFIG: dict[str, SCIMConfigDict] = {} # Minimum number of subscribers in a channel for us to no longer # send full subscriber data to the client. -MIN_PARTIAL_SUBSCRIBERS_CHANNEL_SIZE = 250 +MIN_PARTIAL_SUBSCRIBERS_CHANNEL_SIZE = 1000