diff options
author | Logan Fick <logaldeveloper@protonmail.com> | 2018-09-13 20:48:24 -0400 |
---|---|---|
committer | Logan Fick <logaldeveloper@protonmail.com> | 2018-09-13 20:48:24 -0400 |
commit | 0de6b08b4e4d90025ce7ba92e7cb1fe3e5abfe47 (patch) | |
tree | ed9e27733fef36c28d23b65d222aedf2d27704e9 | |
parent | f3908410c8203ea3399467a19477cffdcb7f13b0 (diff) |
Removed hostnames from user profiles.
-rw-r--r-- | app/controllers/users_controller.rb | 6 | ||||
-rw-r--r-- | app/views/users/show.html.erb | 2 |
2 files changed, 1 insertions, 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) %> <tr> <td><b>Last IP</b></td> - <td><%= @user.last_ip %> (<%= @hostname %>)</td> + <td><%= @user.last_ip %></td> </tr> <tr> <td><b>Email</b></td> |