Rename subject -> topic_name in internal_send_message.

This commit is contained in:
Steve Howell
2017-10-27 05:36:15 -07:00
committed by Tim Abbott
parent 973ee97612
commit fbe5f93141
2 changed files with 3 additions and 3 deletions

View File

@@ -1864,10 +1864,10 @@ def internal_prep_private_message(realm, sender, recipient_user, content):
)
def internal_send_message(realm, sender_email, recipient_type_name, recipients,
subject, content):
topic_name, content):
# type: (Realm, Text, str, Text, Text, Text) -> None
msg = internal_prep_message(realm, sender_email, recipient_type_name, recipients,
subject, content)
topic_name, content)
# internal_prep_message encountered an error
if msg is None:

View File

@@ -91,7 +91,7 @@ class EmbeddedBotHandler(object):
recipients = message['to'] if message['type'] == 'stream' else ','.join(message['to'])
internal_send_message(realm=self.user_profile.realm, sender_email=self.user_profile.email,
recipient_type_name=message['type'], recipients=recipients,
subject=message.get('subject', None), content=message['content'])
topic_name=message.get('subject', None), content=message['content'])
else:
self._rate_limit.show_error_and_exit()