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>
This commit is contained in:
Ole
2026-06-06 12:08:13 +02:00
committed by GitHub
parent 44cd092065
commit f912a186a6

View File

@@ -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
}