diff --git a/models/user/user.go b/models/user/user.go index 851db07314..71b26c63d6 100644 --- a/models/user/user.go +++ b/models/user/user.go @@ -1217,6 +1217,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.