Skip to content

Commit

Permalink
Fix part of publiclab#8542 Removed banned users from followers/follow…
Browse files Browse the repository at this point in the history
…ing list (publiclab#9300)

* Fix part of publiclab#8542 Removed banned users from followers/following list

* fixed codeclimate issue on the previous commit
  • Loading branch information
17sushmita authored and reginaalyssa committed Oct 16, 2021
1 parent 0096b61 commit c26777f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,13 @@ def followed

def following
@title = "Following"
@pagy, @users = pagy(@user.following_users, items: 10)
@pagy, @users = pagy(@user.following_users.where(status: 1), items: 10)
render 'show_follow'
end

def followers
@title = "Followers"
@pagy, @users = pagy(@user.followers, items: 10)
@pagy, @users = pagy(@user.followers.where(status: 1), items: 10)
render 'show_follow'
end

Expand Down

0 comments on commit c26777f

Please sign in to comment.