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:
@@ -127,7 +127,10 @@ func RemoteTrailGet(e *core.RequestEvent) error {
|
|||||||
func findLocalTrailByRemoteInfo(e *core.RequestEvent, ctx context.Context, handle, trailID string) (*core.Record, error) {
|
func findLocalTrailByRemoteInfo(e *core.RequestEvent, ctx context.Context, handle, trailID string) (*core.Record, error) {
|
||||||
// 1. Get Actor to build the IRI
|
// 1. Get Actor to build the IRI
|
||||||
actor, err := federation.GetActorByHandle(e.App, ctx, handle, false)
|
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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user