Skip to content

Commit

Permalink
fix: nickname unescaped
Browse files Browse the repository at this point in the history
  • Loading branch information
Rongronggg9 committed Oct 8, 2023
1 parent 7cf6022 commit 9cbfea6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SlashBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def mention(self, mention_self: bool = False, pure: bool = False) -> str:
if (self.username and (not self.uid or self.uid < 0))
else f'tg://user?id={self.uid}')
name = self.name if not mention_self else "自己"
name = htmlEscape(name)
return f'<a href="{mention_deep_link}">{name}</a>' if not pure else name

def __eq__(self, other):
Expand Down

0 comments on commit 9cbfea6

Please sign in to comment.