mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 07:23:43 +01:00
Fix performance regression in Account::Field#verifiable? (#8719)
* Fix performance regression in Account::Field#verifiable? Regression from #8703 * Fix code style issue
This commit is contained in:
parent
f4d549d300
commit
bac8227519
1 changed files with 1 additions and 1 deletions
|
@ -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!
|
||||||
|
|
Loading…
Reference in a new issue