refactor: Rename alias bugdown_verion to markdown_version.

This commit is part of series of commits aimed at renaming bugdown to
markdown.
This commit is contained in:
Mohit Gupta 2020-06-27 20:39:53 +05:30 committed by Tim Abbott
parent a21a086f5c
commit 6cca775557
1 changed files with 4 additions and 4 deletions

View File

@ -96,7 +96,7 @@ from zerver.lib.export import get_realm_exports_serialized
from zerver.lib.external_accounts import DEFAULT_EXTERNAL_ACCOUNTS
from zerver.lib.hotspots import get_next_hotspots
from zerver.lib.i18n import get_language_name
from zerver.lib.markdown import version as bugdown_version
from zerver.lib.markdown import version as markdown_version
from zerver.lib.message import (
MessageDict,
access_message,
@ -1430,7 +1430,7 @@ def do_send_messages(messages_maybe_none: Sequence[Optional[MutableMapping[str,
email_gateway=email_gateway,
)
message['message'].rendered_content = rendered_content
message['message'].rendered_content_version = bugdown_version
message['message'].rendered_content_version = markdown_version
links_for_embed |= message['message'].links_for_preview
# Add members of the mentioned user groups into `mentions_user_ids`.
@ -4396,7 +4396,7 @@ def do_update_embedded_data(user_profile: UserProfile,
update_user_message_flags(message, ums)
message.content = content
message.rendered_content = rendered_content
message.rendered_content_version = bugdown_version
message.rendered_content_version = markdown_version
event["content"] = content
event["rendered_content"] = rendered_content
@ -4492,7 +4492,7 @@ def do_update_message(user_profile: UserProfile, message: Message,
edit_history_event["prev_rendered_content_version"] = message.rendered_content_version
message.content = content
message.rendered_content = rendered_content
message.rendered_content_version = bugdown_version
message.rendered_content_version = markdown_version
event["content"] = content
event["rendered_content"] = rendered_content
event['prev_rendered_content_version'] = message.rendered_content_version