2021-04-02 19:20:02 +02:00
|
|
|
<?php
|
|
|
|
|
2021-06-08 11:52:11 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-04-02 19:20:02 +02:00
|
|
|
/**
|
|
|
|
* @copyright 2020 Podlibre
|
|
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
|
|
* @link https://castopod.org/
|
|
|
|
*/
|
|
|
|
|
2021-08-23 13:05:16 +02:00
|
|
|
namespace Modules\Admin\Controllers;
|
2021-04-02 19:20:02 +02:00
|
|
|
|
2021-05-12 16:00:25 +02:00
|
|
|
class FediverseController extends BaseController
|
2021-04-02 19:20:02 +02:00
|
|
|
{
|
2021-05-14 19:59:35 +02:00
|
|
|
public function dashboard(): string
|
2021-04-02 19:20:02 +02:00
|
|
|
{
|
2021-09-02 18:34:25 +02:00
|
|
|
return view('fediverse/dashboard');
|
2021-04-02 19:20:02 +02:00
|
|
|
}
|
|
|
|
|
2021-05-14 19:59:35 +02:00
|
|
|
public function blockedActors(): string
|
2021-04-02 19:20:02 +02:00
|
|
|
{
|
|
|
|
helper(['form']);
|
|
|
|
|
2021-05-19 18:35:13 +02:00
|
|
|
$blockedActors = model('ActorModel')
|
|
|
|
->getBlockedActors();
|
2021-04-02 19:20:02 +02:00
|
|
|
|
2021-09-02 18:34:25 +02:00
|
|
|
return view('fediverse/blocked_actors', [
|
2021-04-02 19:20:02 +02:00
|
|
|
'blockedActors' => $blockedActors,
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
2021-05-14 19:59:35 +02:00
|
|
|
public function blockedDomains(): string
|
2021-04-02 19:20:02 +02:00
|
|
|
{
|
|
|
|
helper(['form']);
|
|
|
|
|
2021-05-19 18:35:13 +02:00
|
|
|
$blockedDomains = model('BlockedDomainModel')
|
|
|
|
->getBlockedDomains();
|
2021-04-02 19:20:02 +02:00
|
|
|
|
2021-09-02 18:34:25 +02:00
|
|
|
return view('fediverse/blocked_domains', [
|
2021-04-02 19:20:02 +02:00
|
|
|
'blockedDomains' => $blockedDomains,
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|