mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
We change validate_stream_message to check the existence of stream from the stream name in compose box early and we then pass stream_id or the obtained sub objects accordingly to other validate functions. Passing stream_id or sub objects to these functions, enables us to use stream_id instead of stream name in stream_data.get_subscriber_count. stream_data.get_stream_post_policy is also removed as we only used it in validate_stream_message_policy, but we do not need it now as we can get stream_post_policy directly from sub object obtained by early check of valid stream name.
41 KiB
41 KiB