gearheads
/
mastodon
Archived
2
0
Fork 0

Fix performance regression in Account::Field#verifiable? (#8719)

* Fix performance regression in Account::Field#verifiable?

Regression from #8703

* Fix code style issue
gh/stable
Eugen Rochko 2018-09-18 22:49:24 +02:00 committed by GitHub
parent f4d549d300
commit bac8227519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ class Account < ApplicationRecord
end end
def verifiable? def verifiable?
value.present? && /\A#{FetchLinkCardService::URL_PATTERN}\z/ =~ value value.present? && value.start_with?('http://', 'https://')
end end
def mark_verified! def mark_verified!