From 0de6b08b4e4d90025ce7ba92e7cb1fe3e5abfe47 Mon Sep 17 00:00:00 2001 From: Logan Fick Date: Thu, 13 Sep 2018 20:48:24 -0400 Subject: Removed hostnames from user profiles. --- app/controllers/users_controller.rb | 6 ------ app/views/users/show.html.erb | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 18497fc..28bdf7b 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -22,12 +22,6 @@ class UsersController < ApplicationController flash.now[:alert] = "An error occured while checking if this user is banned from the server!" @ban_json = nil end - - begin - @hostname = Resolv.new.getname(@user.last_ip) - rescue - @hostname = "No hostname found." - end end # SIGNUP diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 8726f8e..cafe726 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -85,7 +85,7 @@ <% if mod? || @user.is?(current_user) %> Last IP - <%= @user.last_ip %> (<%= @hostname %>) + <%= @user.last_ip %> Email -- cgit v1.2.3