kopia lustrzana https://gitlab.com/jaywink/federation
use markdownify instead of as md.
rodzic
e992e2dc20
commit
3dfe7d637b
|
@ -6,7 +6,7 @@ from typing import List, Set, Union, Dict, Tuple
|
|||
|
||||
from bs4 import BeautifulSoup
|
||||
from commonmark import commonmark
|
||||
from markdownify import markdownify as md
|
||||
from markdownify import markdownify
|
||||
from marshmallow import missing
|
||||
|
||||
from federation.entities.activitypub.enums import ActivityType
|
||||
|
@ -265,7 +265,7 @@ class RawContentMixin(BaseEntity):
|
|||
self.raw_content = self.raw_content.replace(mention, '@' + handle)
|
||||
# mardownify the extracted mention in case some characters are escaped in
|
||||
# raw_content
|
||||
self.raw_content = self.raw_content.replace(md(mention), '@' + handle)
|
||||
self.raw_content = self.raw_content.replace(markdownify(mention), '@' + handle)
|
||||
|
||||
|
||||
class OptionalRawContentMixin(RawContentMixin):
|
||||
|
|
Ładowanie…
Reference in New Issue