Aevann 2023-02-26 00:18:43 +02:00
parent 452636c40d
commit 7ec3d1c5f2
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys
name = i.group(2)
existing = g.db.get(Group, name)
if existing:
sanitized = sanitized.replace(f'!{name}', f'<a href="/!{name}">!{name}</a>')
sanitized = group_mention_regex.sub(r'\1<a href="/!\2">!\2</a>', sanitized)
soup = BeautifulSoup(sanitized, 'lxml')