Merge remote-tracking branch 'upstream/develop' into feature/frontend_refactor

This commit is contained in:
Alex Gleason
2020-03-10 16:24:43 -05:00
19 changed files with 123 additions and 218 deletions

View File

@@ -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