Commit 8c837a0c authored by Rob Colbert's avatar Rob Colbert

quick fix for processing of username@domain.:format

parent cab7181b
...@@ -11,8 +11,9 @@ class Api::V1::AccountByUsernameController < Api::BaseController ...@@ -11,8 +11,9 @@ class Api::V1::AccountByUsernameController < Api::BaseController
end end
def set_account def set_account
user = "#{params[:username]}.#{params[:format]}".split("@") user = params[:username].split("@")
if user[1] if user[1]
user[1] = "#{user[1]}.#{params[:format]}"
@account = Account.find_remote!(user[0], user[1]) @account = Account.find_remote!(user[0], user[1])
else else
@account = Account.find_local!(user[0]) @account = Account.find_local!(user[0])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment