logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 35dfc0fbcb725d45facc74af615fd96b9581d978
parent: 29996a7e8b5bde15d3409f3f19820afa13dd1e33
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Sun,  4 Sep 2016 21:15:52 +0200

Fixed more case-sensitivity issues

Diffstat:

Mapp/helpers/application_helper.rb2+-
Mapp/services/follow_remote_account_service.rb2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb @@ -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 diff --git a/app/services/follow_remote_account_service.rb b/app/services/follow_remote_account_service.rb @@ -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)