Fix trails being unavailable when profile is private (#986)

This commit is contained in:
Flomp
2026-05-11 20:02:37 +02:00
committed by GitHub
parent ea6f5d5c95
commit c9024a4322
2 changed files with 5 additions and 1 deletions

View File

@@ -198,7 +198,8 @@ func assembleActor(app core.App, ctx context.Context, dbActor *core.Record, incl
result := make(map[string]interface{})
json.Unmarshal([]byte(privacy), &result)
private = result["account"] == "private"
// check that it's not our own profile
private = result["account"] == "private" && dbActor.Id != strings.TrimPrefix(ctx.Value("actor").(string), "actor:")
} else {