mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-28 18:21:00 +00:00
Don't linkify mentions inside links
This commit is contained in:
parent
5844b8c18c
commit
48174d84a4
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ class Post(StatorModel):
|
|||
PostTypeData.parse_obj(value)
|
||||
|
||||
mention_regex = re.compile(
|
||||
r"(^|[^\w\d\-_])@([\w\d\-_]+(?:@[\w\d\-_]+\.[\w\d\-_\.]+)?)"
|
||||
r"(^|[^\w\d\-_/])@([\w\d\-_]+(?:@[\w\d\-_]+\.[\w\d\-_\.]+)?)"
|
||||
)
|
||||
|
||||
def linkify_mentions(self, content: str, local: bool = False) -> str:
|
||||
|
|
Loading…
Reference in a new issue