summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-22 13:07:03 +0100
committerAzul <azul@leap.se>2013-01-22 13:07:03 +0100
commit0d1da13914675790daaf8def26f27017bf2d2a44 (patch)
tree09b679110cc54b8b4a9c3d7777b6baf1f250dd1a /users
parentde48efcf2a6b5fb096fd209b1efea482f743c19c (diff)
render 404 if needed
Diffstat (limited to 'users')
-rw-r--r--users/app/controllers/webfinger_controller.rb4
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