Ver código fonte

Fixed more case-sensitivity issues

master
Eugen Rochko 7 anos atrás
pai
commit
35dfc0fbcb
2 arquivos alterados com 2 adições e 2 exclusões
  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 Ver arquivo

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

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


Carregando…
Cancelar
Salvar