Add stream_id to event for topic updates.

(imported from commit 2c0ff291672a2576e5812d8c3abdb71256ada61f)
This commit is contained in:
Steve Howell
2014-03-11 09:40:22 -04:00
parent 7a509af38b
commit 9648fd1f9a
2 changed files with 2 additions and 0 deletions

View File

@@ -2033,6 +2033,7 @@ def do_update_message(user_profile, message_id, subject, propagate_mode, content
subject = truncate_topic(subject)
event["orig_subject"] = orig_subject
message.subject = subject
event["stream_id"] = message.recipient.type_id
event["subject"] = subject
event['subject_links'] = bugdown.subject_links(message.sender.realm.domain.lower(), subject)
edit_history_event["prev_subject"] = orig_subject

View File

@@ -273,6 +273,7 @@ class EventsRegisterTest(AuthedTestCase):
('orig_subject', check_string),
('rendered_content', check_string),
('sender', check_string),
('stream_id', check_int),
('subject', check_string),
('subject_links', check_list(None)),
# There is also a timestamp field in the event, but we ignore it, as