Case-insensitive search by usernames
This commit is contained in:
parent
a82f2e4b82
commit
54ea7f5dfe
4 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue