mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update ImportController
This commit is contained in:
parent
776cd4398b
commit
3b7e9e07e1
1 changed files with 8 additions and 8 deletions
|
@ -6,15 +6,15 @@ use Illuminate\Http\Request;
|
||||||
|
|
||||||
class ImportController extends Controller
|
class ImportController extends Controller
|
||||||
{
|
{
|
||||||
use Import\Instagram, Import\Mastodon;
|
use Import\Instagram, Import\Mastodon;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->middleware('auth');
|
$this->middleware('auth');
|
||||||
|
|
||||||
if(config('pixelfed.import.instagram.enabled') != true) {
|
if(config('pixelfed.import.instagram.enabled') != true) {
|
||||||
abort(404, 'Feature not enabled');
|
abort(404, 'Feature not enabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue