diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-13 03:24:41 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-13 03:24:41 +0100 |
commit | e25170f960bdc890e4f8a6b1373ab55192669629 (patch) | |
tree | 6a08f8020ede5457a276d99a6c146354eed4db60 /app/models/account.rb | |
parent | 2939e9898b1e0e7da6db802a00e594be4c85499d (diff) |
Add extended about page stub
Diffstat (limited to 'app/models/account.rb')
-rw-r--r-- | app/models/account.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/account.rb b/app/models/account.rb index ec0e81f7c..5f07615fc 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -159,6 +159,7 @@ class Account < ApplicationRecord end def find_remote!(username, domain) + return if username.blank? where(arel_table[:username].matches(username.gsub(/[%_]/, '\\\\\0'))).where(domain.nil? ? { domain: nil } : arel_table[:domain].matches(domain.gsub(/[%_]/, '\\\\\0'))).take! end |