mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 10:30:15 -05:00
Fixed more case-sensitivity issues
This commit is contained in:
parent
29996a7e8b
commit
35dfc0fbcb
@ -30,7 +30,7 @@ module ApplicationHelper
|
||||
if domain == Rails.configuration.x.local_domain
|
||||
account = Account.find_local(username)
|
||||
else
|
||||
account = Account.find_by(username: username, domain: domain)
|
||||
account = Account.find_remote(username, domain)
|
||||
end
|
||||
|
||||
account
|
||||
|
@ -10,7 +10,7 @@ class FollowRemoteAccountService < BaseService
|
||||
|
||||
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?
|
||||
account = Account.new(username: username, domain: domain)
|
||||
|
Loading…
Reference in New Issue
Block a user