|
|
|
@ -330,7 +330,7 @@ func GetUserFollowers(ctx context.Context, u, viewer *User, listOptions db.ListO |
|
|
|
|
And("`user`.type=?", UserTypeIndividual). |
|
|
|
|
And(isUserVisibleToViewerCond(viewer)) |
|
|
|
|
|
|
|
|
|
if listOptions.Page != 0 { |
|
|
|
|
if listOptions.Page > 0 { |
|
|
|
|
sess = db.SetSessionPagination(sess, &listOptions) |
|
|
|
|
|
|
|
|
|
users := make([]*User, 0, listOptions.PageSize) |
|
|
|
@ -352,7 +352,7 @@ func GetUserFollowing(ctx context.Context, u, viewer *User, listOptions db.ListO |
|
|
|
|
And("`user`.type IN (?, ?)", UserTypeIndividual, UserTypeOrganization). |
|
|
|
|
And(isUserVisibleToViewerCond(viewer)) |
|
|
|
|
|
|
|
|
|
if listOptions.Page != 0 { |
|
|
|
|
if listOptions.Page > 0 { |
|
|
|
|
sess = db.SetSessionPagination(sess, &listOptions) |
|
|
|
|
|
|
|
|
|
users := make([]*User, 0, listOptions.PageSize) |
|
|
|
|