[reputation] remove mentions in /top commands

This commit is contained in:
West14
2022-04-23 21:53:34 +03:00
parent 4accf36ffa
commit 87b4732e99
+3 -1
View File
@@ -160,7 +160,9 @@ public class Reputation : CommonHandler
foreach (var rep in await _reputationService.GetChatRatingAsync(Chat))
{
var user = await _userService.GetUser(rep.UserId, rep.ChatId);
msg.Text($"{i}. ").UserMention(user).Text($" ({rep.Value})").Br();
msg.Text($"{i}. ")
.Text($"{user.FirstName} {user.LastName}".Trim().HtmlEncode())
.Text($" ({rep.Value})").Br();
i++;
}