Merge pull request #5660 from maco/max_caption_length_config_cache

use config_cache for max_caption_length
This commit is contained in:
daniel 2025-02-03 03:17:39 -07:00 committed by GitHub
commit 22e608b43d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@ class StoreStatusEditRequest extends FormRequest
public function rules(): array public function rules(): array
{ {
return [ return [
'status' => 'sometimes|max:'.config('pixelfed.max_caption_length', 500), 'status' => 'sometimes|max:'.config_cache('pixelfed.max_caption_length', 500),
'spoiler_text' => 'nullable|string|max:140', 'spoiler_text' => 'nullable|string|max:140',
'sensitive' => 'sometimes|boolean', 'sensitive' => 'sometimes|boolean',
'media_ids' => [ 'media_ids' => [