Browse Source

Fixed more case-sensitivity issues

closed-social-glitch-2
Eugen Rochko 7 years ago
parent
commit
35dfc0fbcb
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/helpers/application_helper.rb
  2. +1
    -1
      app/services/follow_remote_account_service.rb

+ 1
- 1
app/helpers/application_helper.rb View File

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

+ 1
- 1
app/services/follow_remote_account_service.rb View File

@ -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…
Cancel
Save