Merge remote-tracking branch 'origin/master' into merge-upstream

Conflicts:
	.env.production.sample
	app/controllers/auth/confirmations_controller.rb
	db/schema.rb
This commit is contained in:
David Yip
2018-02-04 16:36:19 -06:00
35 changed files with 506 additions and 31 deletions

View File

@ -23,6 +23,8 @@ class StatusLengthValidator < ActiveModel::Validator
end
def countable_text(status)
return '' if status.text.nil?
status.text.dup.tap do |new_text|
new_text.gsub!(FetchLinkCardService::URL_PATTERN, 'x' * 23)
new_text.gsub!(Account::MENTION_RE, '@\2')