[backend/federation] Hide private replies from the replies collection

This commit is contained in:
Kopper 2024-11-23 20:17:39 +03:00 committed by Laura Hausmann
parent 36d9a8cc49
commit dab3b7ed4c
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

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