streams: Add subscriber_count to page load data.

This commit is contained in:
Evy Kassirer
2025-06-06 20:59:54 -07:00
committed by Tim Abbott
parent e298eddefc
commit 4313648ca5
10 changed files with 91 additions and 1 deletions

View File

@@ -1538,6 +1538,7 @@ def stream_to_dict(
stream_post_policy=stream_post_policy,
is_announcement_only=stream_post_policy == Stream.STREAM_POST_POLICY_ADMINS,
stream_weekly_traffic=stream_weekly_traffic,
subscriber_count=stream.subscriber_count,
topics_policy=StreamTopicsPolicyEnum(stream.topics_policy).name,
)