mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 17:53:16 +00:00
commit
1f042dd02f
2 changed files with 3 additions and 2 deletions
|
@ -69,8 +69,9 @@ trait Instagram
|
||||||
|
|
||||||
public function instagramStepOneStore(Request $request, $uuid)
|
public function instagramStepOneStore(Request $request, $uuid)
|
||||||
{
|
{
|
||||||
|
$max = 'max:' . config('pixelfed.import.instagram.limits.size');
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'media.*' => 'required|mimes:bin,jpeg,png,gif|max:500',
|
'media.*' => 'required|mimes:bin,jpeg,png,gif|'.$max,
|
||||||
//'mediajson' => 'required|file|mimes:json'
|
//'mediajson' => 'required|file|mimes:json'
|
||||||
]);
|
]);
|
||||||
$media = $request->file('media');
|
$media = $request->file('media');
|
||||||
|
|
|
@ -239,7 +239,7 @@ return [
|
||||||
'enabled' => env('IMPORT_INSTAGRAM', false),
|
'enabled' => env('IMPORT_INSTAGRAM', false),
|
||||||
'limits' => [
|
'limits' => [
|
||||||
'posts' => (int) env('IMPORT_INSTAGRAM_POST_LIMIT', 100),
|
'posts' => (int) env('IMPORT_INSTAGRAM_POST_LIMIT', 100),
|
||||||
'size' => (int) env('IMPORT_INSTAGRAM_SIZE_LIMIT', 250)
|
'size' => (int) env('IMPORT_INSTAGRAM_SIZE_LIMIT', 5000)
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue