diff options
Diffstat (limited to 'app/validators')
-rw-r--r-- | app/validators/status_length_validator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/validators/status_length_validator.rb b/app/validators/status_length_validator.rb index abf250d65..77be3f1f5 100644 --- a/app/validators/status_length_validator.rb +++ b/app/validators/status_length_validator.rb @@ -24,7 +24,7 @@ class StatusLengthValidator < ActiveModel::Validator def countable_text(status) status.text.dup.tap do |new_text| - URI.extract(new_text).each { |url| new_text.gsub!(url, 'x' * 23) } + new_text.gsub!(FetchLinkCardService::URL_PATTERN, 'x' * 23) new_text.gsub!(Account::MENTION_RE, '@\2') end end |