mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
[important] Fix recent regression w/maybe_get_subscribers
(imported from commit 8069f729dcb2bfec1c1df8f50a88fe49545a9a87)
This commit is contained in:
@@ -451,7 +451,7 @@ def check_message(sender, client, message_type_name, message_to,
|
||||
|
||||
if sender.is_bot:
|
||||
if stream:
|
||||
num_subscribers = len(maybe_get_subscribers(stream))
|
||||
num_subscribers = len(maybe_get_subscriber_emails(stream))
|
||||
|
||||
if stream is None or num_subscribers == 0:
|
||||
# Warn a bot's owner if they are sending a message to a stream
|
||||
|
||||
Reference in New Issue
Block a user