diff options
-rw-r--r-- | app/controllers/watchers_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb index 37c03cdaa..488898546 100644 --- a/app/controllers/watchers_controller.rb +++ b/app/controllers/watchers_controller.rb @@ -121,8 +121,8 @@ class WatchersController < ApplicationController scope = User.all.limit(100) end users = scope.active.visible.sorted.like(params[:q]).to_a - if @watchables - users -= @watchables.map(&:watcher_users).flatten + if @watchables && @watchables.size == 1 + users -= @watchables.first.watcher_users end users end |