mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
@@ -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,
|
||||
|
@@ -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 = [
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user