投稿文字数上限を2048文字に

This commit is contained in:
YoheiZuho 2019-09-02 12:49:19 +09:00 committed by GitHub
parent 341651f09c
commit 30ce8dd0dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
class StatusLengthValidator < ActiveModel::Validator
MAX_CHARS = 500
MAX_CHARS = 2048
def validate(status)
return unless status.local? && !status.reblog?