Fixed more case-sensitivity issues

main
Eugen Rochko 2016-09-04 21:15:52 +02:00
parent 29996a7e8b
commit 35dfc0fbcb
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ module ApplicationHelper
if domain == Rails.configuration.x.local_domain if domain == Rails.configuration.x.local_domain
account = Account.find_local(username) account = Account.find_local(username)
else else
account = Account.find_by(username: username, domain: domain) account = Account.find_remote(username, domain)
end end
account account

View File

@ -10,7 +10,7 @@ class FollowRemoteAccountService < BaseService
return Account.find_local(username) if domain == Rails.configuration.x.local_domain return Account.find_local(username) if domain == Rails.configuration.x.local_domain
account = Account.find_by(username: username, domain: domain) account = Account.find_remote(username, domain)
if account.nil? if account.nil?
account = Account.new(username: username, domain: domain) account = Account.new(username: username, domain: domain)