mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update SettingsController, add 404 to import when disabled
This commit is contained in:
parent
a834b1106e
commit
ffccf0fd41
1 changed files with 2 additions and 0 deletions
|
@ -77,11 +77,13 @@ class SettingsController extends Controller
|
||||||
|
|
||||||
public function dataImport()
|
public function dataImport()
|
||||||
{
|
{
|
||||||
|
abort_if(!config('pixelfed.import.instagram.enabled'), 404);
|
||||||
return view('settings.import.home');
|
return view('settings.import.home');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function dataImportInstagram()
|
public function dataImportInstagram()
|
||||||
{
|
{
|
||||||
|
abort_if(!config('pixelfed.import.instagram.enabled'), 404);
|
||||||
return view('settings.import.instagram.home');
|
return view('settings.import.instagram.home');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue