mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 01:33:16 +00:00
Update IG Import, remove hardcoded media size limit
This commit is contained in:
parent
193027bdc7
commit
144678fc9c
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