loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Hide limited users if viewed by anonymous ghost (#25214)

The ghost user leads to inclusion of limited users/orgs in
`BuildCanSeeUserCondition`.

authored by

KN4CK3R and committed by
GitHub
2126f712 139704f4

+4
+4
models/packages/container/search.go
··· 262 262 cond = cond.And(builder.Gt{"package_property.value": strings.ToLower(last)}) 263 263 } 264 264 265 + if actor.IsGhost() { 266 + actor = nil 267 + } 268 + 265 269 cond = cond.And(user_model.BuildCanSeeUserCondition(actor)) 266 270 267 271 sess := db.GetEngine(ctx).