[backend/masto-client] Add missing includes for note mention users in NoteRenderer
This commit is contained in:
parent
053ff63add
commit
ad54623c64
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,8 @@ public class NoteRenderer(
|
|||
var liked = likedNotes?.Contains(note.Id) ?? await db.NoteLikes.AnyAsync(p => p.Note == note && p.User == user);
|
||||
|
||||
if (mentions == null) {
|
||||
mentions = await db.Users.Where(p => note.Mentions.Contains(p.Id))
|
||||
mentions = await db.Users.IncludeCommonProperties()
|
||||
.Where(p => note.Mentions.Contains(p.Id))
|
||||
.Select(u => new Mention(u, config.Value.WebDomain))
|
||||
.ToListAsync();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue