diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 1cc5b038f..8e705aff2 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -412,7 +412,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis sanitized = sanitized.replace('/\1', sanitized) + sanitized = reddit_mention_regex.sub(r'/\2', sanitized) sanitized = hole_mention_regex.sub(r'/\1', sanitized) names = set(m.group(1) for m in mention_regex.finditer(sanitized))