Revert "increase the MAX_DESCRIPTION_LENGTH of media_attachment"

This reverts commit 58f6e4c36a.
This commit is contained in:
bgme 2024-01-19 07:13:00 +08:00
parent 58f6e4c36a
commit 44c6d1d464
2 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ class MediaAttachment < ApplicationRecord
enum type: { image: 0, gifv: 1, video: 2, unknown: 3, audio: 4 }
enum processing: { queued: 0, in_progress: 1, complete: 2, failed: 3 }, _prefix: true
MAX_DESCRIPTION_LENGTH = 65_536
MAX_DESCRIPTION_LENGTH = 1_500
IMAGE_LIMIT = 16.megabytes
VIDEO_LIMIT = 99.megabytes