Merge pull request #5660 from maco/max_caption_length_config_cache

use config_cache for max_caption_length
pull/5669/head
daniel 4 weeks ago committed by GitHub
commit 22e608b43d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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