We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd1a15a commit 45f7b40Copy full SHA for 45f7b40
app/controllers/users_controller.rb
@@ -325,13 +325,13 @@ def followed
325
326
def following
327
@title = "Following"
328
- @pagy, @users = pagy(@user.following_users, items: 10)
+ @pagy, @users = pagy(@user.following_users.where(status: 1), items: 10)
329
render 'show_follow'
330
end
331
332
def followers
333
@title = "Followers"
334
- @pagy, @users = pagy(@user.followers, items: 10)
+ @pagy, @users = pagy(@user.followers.where(status: 1), items: 10)
335
336
337
0 commit comments