Skip to content

Commit 45f7b40

Browse files
17sushmitabillymoroney1
authored andcommitted
Fix part of publiclab#8542 Removed banned users from followers/following list (publiclab#9300)
* Fix part of publiclab#8542 Removed banned users from followers/following list * fixed codeclimate issue on the previous commit
1 parent bd1a15a commit 45f7b40

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)