Skip to content

Commit 8887699

Browse files
Gargronroot
authored andcommitted
Fix performance regression in Account::Field#verifiable? (mastodon#8719)
* Fix performance regression in Account::Field#verifiable? Regression from mastodon#8703 * Fix code style issue
1 parent 37fc15c commit 8887699

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/account.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def verified?
323323
end
324324

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

329329
def mark_verified!

0 commit comments

Comments
 (0)