Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Mar 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix part of #8542 Removed banned users from followers/following list
17sushmita committed Mar 14, 2021
commit 851c42ebd003f3c8d666ba0367dcb14ab629f19f
4 changes: 2 additions & 2 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
@@ -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