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
  • Loading branch information
17sushmita committed Mar 14, 2021
1 parent 56139e9 commit 851c42e
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 851c42e

Please sign in to comment.