[backend/federation] Only allow fetching of replies collection for local notes
This commit is contained in:
parent
39ebc7a457
commit
fd7d3eabb2
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ public class ActivityPubController(
|
|||
var actor = HttpContext.GetActor();
|
||||
var note = await db.Notes
|
||||
.EnsureVisibleFor(actor)
|
||||
.FirstOrDefaultAsync(p => p.Id == id) ??
|
||||
.FirstOrDefaultAsync(p => p.Id == id && p.User.IsLocalUser) ??
|
||||
throw GracefulException.NotFound("Note not found");
|
||||
|
||||
var replies = await db.Notes
|
||||
|
|
Loading…
Add table
Reference in a new issue