use config_cache for max_caption_length

pull/5660/head
Mackenzie Morgan 4 weeks ago
parent f924491e4d
commit bd64e9f588

@ -44,7 +44,7 @@ class StoreStatusEditRequest extends FormRequest
public function rules(): array
{
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',
'sensitive' => 'sometimes|boolean',
'media_ids' => [

Loading…
Cancel
Save