0
0
Fork 0

Case-insensitive search by usernames

This commit is contained in:
Eugen Rochko 2016-09-04 21:06:04 +02:00
parent a82f2e4b82
commit 54ea7f5dfe
4 changed files with 14 additions and 4 deletions

View file

@ -29,7 +29,7 @@ class AccountsController < ApplicationController
private
def set_account
@account = Account.find_by!(username: params[:username], domain: nil)
@account = Account.find_local!(params[:username])
end
def set_webfinger_header

View file

@ -16,7 +16,7 @@ class StreamEntriesController < ApplicationController
private
def set_account
@account = Account.find_by!(username: params[:account_username], domain: nil)
@account = Account.find_local!(params[:account_username])
end
def set_stream_entry