From eb9fd0e8e99ec99db29965dbd187aebeca6aa1ab Mon Sep 17 00:00:00 2001 From: Mia <49593536+mia-pi-git@users.noreply.github.com> Date: Sat, 17 Jul 2021 18:33:32 -0500 Subject: [PATCH] Friends: Use getExact in displaying singular pending requests --- server/chat-plugins/friends.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/chat-plugins/friends.ts b/server/chat-plugins/friends.ts index 19001be80f..7c2e619664 100644 --- a/server/chat-plugins/friends.ts +++ b/server/chat-plugins/friends.ts @@ -29,7 +29,7 @@ export const Friends = new class { if (pendingCount < 1) return; if (pendingCount === 1) { const sender = [...friendRequests.received][0]; - const senderName = Users.get(sender)?.name || sender; + const senderName = Users.getExact(sender)?.name || sender; let buf = Utils.html`/uhtml sent, | `; buf += Utils.html`
`; buf += `(You can also stop this user from sending you friend requests with /ignore)`;