mirror of https://github.com/zulip/zulip.git
[important] Fix recent regression w/maybe_get_subscribers
(imported from commit 8069f729dcb2bfec1c1df8f50a88fe49545a9a87)
This commit is contained in:
parent
c6a9297f1a
commit
de0d50d31a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue