mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 12:01:14 +00:00
Fixes execution order for formatting content body for statuses
This commit is contained in:
parent
5565523d85
commit
2f42ec5e37
1 changed files with 1 additions and 2 deletions
|
@ -48,7 +48,6 @@ class CreateStatus(View):
|
|||
r'<a href="%s">%s</a>\g<1>' % \
|
||||
(mention_user.remote_id, mention_text),
|
||||
content)
|
||||
|
||||
# add reply parent to mentions and notify
|
||||
if status.reply_parent:
|
||||
status.mention_users.add(status.reply_parent.user)
|
||||
|
@ -126,8 +125,8 @@ def format_links(content):
|
|||
|
||||
def to_markdown(content):
|
||||
''' catch links and convert to markdown '''
|
||||
content = format_links(content)
|
||||
content = markdown(content)
|
||||
content = format_links(content)
|
||||
# sanitize resulting html
|
||||
sanitizer = InputHtmlParser()
|
||||
sanitizer.feed(content)
|
||||
|
|
Loading…
Reference in a new issue