Add extended about page stub
This commit is contained in:
parent
2939e9898b
commit
e25170f960
10 changed files with 44 additions and 15 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue