[backend/api] Fix endpoint for getting specific reactions on notes not working with Unicode emojis

This commit is contained in:
pancakes 2025-03-06 12:18:02 +10:00 committed by Laura Hausmann
parent 5d27233d08
commit 091d0e0c3f
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -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();