[backend/api-shared] Fix emoji reactions not being rendered consistently
This commit is contained in:
parent
39296bbc25
commit
839f93ff66
2 changed files with 2 additions and 2 deletions
|
@ -283,7 +283,7 @@ public class NoteRenderer(
|
||||||
var counts = notes.ToDictionary(p => p.Id, p => p.Reactions);
|
var counts = notes.ToDictionary(p => p.Id, p => p.Reactions);
|
||||||
var res = await db.NoteReactions
|
var res = await db.NoteReactions
|
||||||
.Where(p => notes.Contains(p.Note))
|
.Where(p => notes.Contains(p.Note))
|
||||||
.GroupBy(p => p.Reaction)
|
.GroupBy(p => new { p.NoteId, p.Reaction })
|
||||||
.Select(p => new ReactionEntity
|
.Select(p => new ReactionEntity
|
||||||
{
|
{
|
||||||
NoteId = p.First().NoteId,
|
NoteId = p.First().NoteId,
|
||||||
|
|
|
@ -115,7 +115,7 @@ public class NoteRenderer(UserRenderer userRenderer, DatabaseContext db, EmojiSe
|
||||||
var counts = notes.ToDictionary(p => p.Id, p => p.Reactions);
|
var counts = notes.ToDictionary(p => p.Id, p => p.Reactions);
|
||||||
var res = await db.NoteReactions
|
var res = await db.NoteReactions
|
||||||
.Where(p => notes.Contains(p.Note))
|
.Where(p => notes.Contains(p.Note))
|
||||||
.GroupBy(p => p.Reaction)
|
.GroupBy(p => new { p.NoteId, p.Reaction })
|
||||||
.Select(p => new NoteReactionSchema
|
.Select(p => new NoteReactionSchema
|
||||||
{
|
{
|
||||||
NoteId = p.First().NoteId,
|
NoteId = p.First().NoteId,
|
||||||
|
|
Loading…
Add table
Reference in a new issue