Fix typo on /api/accounts/:id/statuses, fix potential case-sensitivity issue
when registering incoming status mentions, add Travis CI file
This commit is contained in:
parent
15476d505d
commit
9a7485d034
5 changed files with 19 additions and 8 deletions
|
@ -104,6 +104,12 @@ class Account < ActiveRecord::Base
|
|||
self.where(table[:username].matches(username)).where(domain: nil).take!
|
||||
end
|
||||
|
||||
def self.find_local(username)
|
||||
self.find_local!(username)
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
nil
|
||||
end
|
||||
|
||||
before_create do
|
||||
if local?
|
||||
keypair = OpenSSL::PKey::RSA.new(Rails.env.test? ? 1024 : 2048)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue