Skip to content

Commit 7061c1d

Browse files
authoredMar 16, 2021
Fix part of #8542 Removed banned users from followers/following list (#9300)
* Fix part of #8542 Removed banned users from followers/following list * fixed codeclimate issue on the previous commit
1 parent 56139e9 commit 7061c1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎app/controllers/users_controller.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -325,13 +325,13 @@ def followed
325325

326326
def following
327327
@title = "Following"
328-
@pagy, @users = pagy(@user.following_users, items: 10)
328+
@pagy, @users = pagy(@user.following_users.where(status: 1), items: 10)
329329
render 'show_follow'
330330
end
331331

332332
def followers
333333
@title = "Followers"
334-
@pagy, @users = pagy(@user.followers, items: 10)
334+
@pagy, @users = pagy(@user.followers.where(status: 1), items: 10)
335335
render 'show_follow'
336336
end
337337

0 commit comments

Comments
 (0)
Please sign in to comment.