refactor: Rename bugdown to markdown in message_edit.py.

This commit is part of series of commits aimed at renaming bugdown to
markdown.
This commit is contained in:
Mohit Gupta 2020-06-28 13:20:52 +05:30 committed by Tim Abbott
parent 0552936c9b
commit bbec1f72a8
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,6 @@ from django.utils.timezone import now as timezone_now
from django.utils.translation import ugettext as _
from zerver.decorator import REQ, has_request_variables
from zerver.lib import markdown as bugdown
from zerver.lib.actions import (
do_delete_messages,
do_update_message,
@ -17,6 +16,7 @@ from zerver.lib.actions import (
)
from zerver.lib.exceptions import JsonableError
from zerver.lib.html_diff import highlight_html_differences
from zerver.lib.markdown import MentionData
from zerver.lib.message import access_message, truncate_body
from zerver.lib.queue import queue_json_publish
from zerver.lib.response import json_error, json_success
@ -159,14 +159,14 @@ def update_message_backend(request: HttpRequest, user_profile: UserMessage,
links_for_embed: Set[str] = set()
prior_mention_user_ids: Set[int] = set()
mention_user_ids: Set[int] = set()
mention_data: Optional[bugdown.MentionData] = None
mention_data: Optional[MentionData] = None
if content is not None:
content = content.strip()
if content == "":
content = "(deleted)"
content = truncate_body(content)
mention_data = bugdown.MentionData(
mention_data = MentionData(
realm_id=user_profile.realm.id,
content=content,
)