Account.find_acct! function
This commit is contained in:
@@ -11,12 +11,7 @@ class Api::V1::AccountByUsernameController < Api::BaseController
|
||||
end
|
||||
|
||||
def set_account
|
||||
username, domain = params[:username].split("@")
|
||||
if domain
|
||||
@account = Account.find_remote!(username, domain)
|
||||
else
|
||||
@account = Account.find_local!(username)
|
||||
end
|
||||
@account = Account.find_acct!(params[:username])
|
||||
end
|
||||
|
||||
def check_account_suspension
|
||||
|
||||
Reference in New Issue
Block a user