Merge remote-tracking branch 'upstream/main'

This commit is contained in:
bgme 2021-09-01 23:00:05 +08:00
commit 3bec1c88b4
201 changed files with 5926 additions and 4235 deletions

View file

@ -2,7 +2,8 @@
class StatusLengthValidator < ActiveModel::Validator
MAX_CHARS = (ENV['MAX_TOOT_CHARS'] || 500).to_i
URL_PLACEHOLDER = "\1#{'x' * 23}"
URL_PLACEHOLDER_CHARS = 23
URL_PLACEHOLDER = "\1#{'x' * URL_PLACEHOLDER_CHARS}"
def validate(status)
return unless status.local? && !status.reblog?