diff options
Diffstat (limited to 'activities/models')
-rw-r--r-- | activities/models/post.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activities/models/post.py b/activities/models/post.py index da23742..378de91 100644 --- a/activities/models/post.py +++ b/activities/models/post.py @@ -166,7 +166,7 @@ class Post(StatorModel): ### Content cleanup and extraction ### 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, local=False): |