Skip to content

Commit

Permalink
Fix performance regression in Account::Field#verifiable? (mastodon#8719)
Browse files Browse the repository at this point in the history
* Fix performance regression in Account::Field#verifiable?

Regression from mastodon#8703

* Fix code style issue
  • Loading branch information
Gargron authored and root committed Oct 10, 2018
1 parent 37fc15c commit 8887699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def verified?
end

def verifiable?
value.present? && /\A#{FetchLinkCardService::URL_PATTERN}\z/ =~ value
value.present? && value.start_with?('http://', 'https://')
end

def mark_verified!
Expand Down

0 comments on commit 8887699

Please sign in to comment.