diff options
author | Azul <azul@leap.se> | 2013-01-22 13:07:03 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-01-22 13:07:03 +0100 |
commit | 0d1da13914675790daaf8def26f27017bf2d2a44 (patch) | |
tree | 09b679110cc54b8b4a9c3d7777b6baf1f250dd1a /users | |
parent | de48efcf2a6b5fb096fd209b1efea482f743c19c (diff) |
render 404 if needed
Diffstat (limited to 'users')
-rw-r--r-- | users/app/controllers/webfinger_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/app/controllers/webfinger_controller.rb b/users/app/controllers/webfinger_controller.rb index e86cd2d..ac05934 100644 --- a/users/app/controllers/webfinger_controller.rb +++ b/users/app/controllers/webfinger_controller.rb @@ -8,8 +8,8 @@ class WebfingerController < ApplicationController def search username = params[:q].split('@')[0].to_s.downcase - - user = User.find_by_login(username) + user = User.find_by_login(username) || not_found @subject = Webfinger::UserPresenter.new(user, request) end + end |