diff --git a/models/user/user.go b/models/user/user.go index 63b95816c..2c4e94953 100644 --- a/models/user/user.go +++ b/models/user/user.go @@ -1205,6 +1205,8 @@ func isUserVisibleToViewerCond(viewer *User) builder.Cond { return builder.Neq{ "`user`.visibility": structs.VisibleTypePrivate, }.Or( + // viewer self + builder.Eq{"`user`.id": viewer.ID}, // viewer's following builder.In("`user`.id", builder.