2018-11-04 03:51:51 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
|
|
class ImportController extends Controller
|
|
|
|
{
|
2020-05-26 03:30:18 +00:00
|
|
|
use Import\Instagram, Import\Mastodon;
|
2018-11-04 03:51:51 +00:00
|
|
|
|
2020-05-26 03:30:18 +00:00
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
$this->middleware('auth');
|
2019-03-17 23:00:46 +00:00
|
|
|
|
2021-05-12 01:07:03 +00:00
|
|
|
if(config_cache('pixelfed.import.instagram.enabled') != true) {
|
2020-05-26 03:30:18 +00:00
|
|
|
abort(404, 'Feature not enabled');
|
|
|
|
}
|
|
|
|
}
|
2018-11-04 03:51:51 +00:00
|
|
|
|
|
|
|
}
|