From 091d0e0c3f511da1ffe50442b5c613468b49aa7e Mon Sep 17 00:00:00 2001 From: pancakes Date: Thu, 6 Mar 2025 12:18:02 +1000 Subject: [PATCH] [backend/api] Fix endpoint for getting specific reactions on notes not working with Unicode emojis --- Iceshrimp.Backend/Controllers/Web/NoteController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Iceshrimp.Backend/Controllers/Web/NoteController.cs b/Iceshrimp.Backend/Controllers/Web/NoteController.cs index 09267ce5..bc5e664a 100644 --- a/Iceshrimp.Backend/Controllers/Web/NoteController.cs +++ b/Iceshrimp.Backend/Controllers/Web/NoteController.cs @@ -159,7 +159,7 @@ public class NoteController( throw GracefulException.NotFound("Note not found"); var users = await db.NoteReactions - .Where(p => p.Note == note && p.Reaction == $":{name.Trim(':')}:") + .Where(p => p.Note == note && p.Reaction == name) .Include(p => p.User.UserProfile) .Select(p => p.User) .ToListAsync();