1
0
Эх сурвалжийг харах

use config_cache for max_caption_length

Mackenzie Morgan 5 сар өмнө
parent
commit
bd64e9f588

+ 1 - 1
app/Http/Requests/Status/StoreStatusEditRequest.php

@@ -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' => [