mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-30 15:37:19 +02:00
44 lines
936 B
PHP
44 lines
936 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* @copyright 2020 Podlibre
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
* @link https://castopod.org/
|
|
*/
|
|
|
|
namespace Modules\Admin\Controllers;
|
|
|
|
class FediverseController extends BaseController
|
|
{
|
|
public function dashboard(): string
|
|
{
|
|
return view('fediverse/dashboard');
|
|
}
|
|
|
|
public function blockedActors(): string
|
|
{
|
|
helper(['form']);
|
|
|
|
$blockedActors = model('ActorModel', false)
|
|
->getBlockedActors();
|
|
|
|
return view('fediverse/blocked_actors', [
|
|
'blockedActors' => $blockedActors,
|
|
]);
|
|
}
|
|
|
|
public function blockedDomains(): string
|
|
{
|
|
helper(['form']);
|
|
|
|
$blockedDomains = model('BlockedDomainModel', false)
|
|
->getBlockedDomains();
|
|
|
|
return view('fediverse/blocked_domains', [
|
|
'blockedDomains' => $blockedDomains,
|
|
]);
|
|
}
|
|
}
|