mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-02-06 20:00:48 +00:00
Merge pull request #5660 from maco/max_caption_length_config_cache
use config_cache for max_caption_length
This commit is contained in:
commit
22e608b43d
1 changed files with 1 additions and 1 deletions
|
@ -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' => [
|
||||||
|
|
Loading…
Reference in a new issue