Skip to content

Commit 0a35c60

Browse files
committed
split
1 parent 4bc1ce0 commit 0a35c60

File tree

2 files changed

+0
-77
lines changed

2 files changed

+0
-77
lines changed

models/user/search.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,6 @@ func BuildCanSeeUserCondition(actor *User) builder.Cond {
157157
if !actor.IsRestricted {
158158
// Not-Restricted users can see public and limited users/organizations
159159
cond = cond.Or(builder.In("`user`.visibility", structs.VisibleTypePublic, structs.VisibleTypeLimited))
160-
// or private users who do follow them
161-
cond = cond.Or(builder.Eq{
162-
"`user`.visibility": structs.VisibleTypePrivate,
163-
"`user`.id": builder.Select("follow.user_id").From("follow").Where(builder.Eq{"follow.follow_id": actor.ID}),
164-
})
165160
}
166161
// Don't forget about self
167162
return cond.Or(builder.Eq{"`user`.id": actor.ID})

models/user/search_test.go

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)