Remove ip action from `ModerationController`

This commit is contained in:
Andreas Nedbal 2022-07-19 21:38:44 +02:00 committed by Karina Kwiatek
parent 929e951b2d
commit 94bd339671
1 changed files with 0 additions and 11 deletions

View File

@ -55,17 +55,6 @@ class ModerationController < ApplicationController
end end
end end
def ip
@user_id = params[:user_id]
@host = User.find(@user_id)
@users = []
return if @host.nil?
@users = User.where('(current_sign_in_ip = ? OR last_sign_in_ip = ?) AND id != ?', @host.current_sign_in_ip, @host.last_sign_in_ip, @user_id).to_a
@users.unshift @host
render template: 'moderation/priority'
end
def toggle_unmask def toggle_unmask
session[:moderation_view] = !session[:moderation_view] session[:moderation_view] = !session[:moderation_view]
redirect_back fallback_location: root_path redirect_back fallback_location: root_path