[backend/federation] Hide private replies from the replies collection
This commit is contained in:
parent
36d9a8cc49
commit
dab3b7ed4c
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ public class ActivityPubController(
|
|||
|
||||
var replies = await db.Notes
|
||||
.Where(p => p.ReplyId == id)
|
||||
.EnsureVisibleFor(actor)
|
||||
.OrderByDescending(p => p.Id)
|
||||
.Select(p => new Note { Id = p.Id, Uri = p.Uri })
|
||||
.ToListAsync();
|
||||
|
|
Loading…
Add table
Reference in a new issue