1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-30 11:44:59 +00:00
pixelfed/app/Http/Controllers/ImportController.php
2021-05-11 19:07:03 -06:00

20 lines
333 B
PHP

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class ImportController extends Controller
{
use Import\Instagram, Import\Mastodon;
public function __construct()
{
$this->middleware('auth');
if(config_cache('pixelfed.import.instagram.enabled') != true) {
abort(404, 'Feature not enabled');
}
}
}