summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
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