From f912a186a66824066ee557e7883c57d2c7147be5 Mon Sep 17 00:00:00 2001 From: Ole Date: Sat, 6 Jun 2026 12:08:13 +0200 Subject: [PATCH] Update remote_trail.go (#1002) Public Trails from users with private accounts currently show a 404. This fixes that Co-authored-by: slothful-vassal <89943360+slothful-vassal@users.noreply.github.com> --- db/routes/remote_trail.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/db/routes/remote_trail.go b/db/routes/remote_trail.go index c9a0fed6..07dc63a4 100644 --- a/db/routes/remote_trail.go +++ b/db/routes/remote_trail.go @@ -127,7 +127,10 @@ func RemoteTrailGet(e *core.RequestEvent) error { func findLocalTrailByRemoteInfo(e *core.RequestEvent, ctx context.Context, handle, trailID string) (*core.Record, error) { // 1. Get Actor to build the IRI actor, err := federation.GetActorByHandle(e.App, ctx, handle, false) - if err != nil { + if err != nil && !errors.Is(err, federation.ErrProfilePrivate) { + return nil, err + } + if actor == nil { return nil, err }