mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 20:47:46 +02:00
refactor: add phpstan and update code to adhere to level 5
- move and refactor Image.php from Libraries to Entities folder - update some database field names / types - update composer packages
This commit is contained in:
parent
b691b927fe
commit
231d578d64
148 changed files with 11189 additions and 11421 deletions
39
app/Controllers/Admin/FediverseController.php
Normal file
39
app/Controllers/Admin/FediverseController.php
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @copyright 2020 Podlibre
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
||||
* @link https://castopod.org/
|
||||
*/
|
||||
|
||||
namespace App\Controllers\Admin;
|
||||
|
||||
class FediverseController extends BaseController
|
||||
{
|
||||
public function dashboard()
|
||||
{
|
||||
return view('admin/fediverse/dashboard');
|
||||
}
|
||||
|
||||
public function blockedActors()
|
||||
{
|
||||
helper(['form']);
|
||||
|
||||
$blockedActors = model('ActorModel')->getBlockedActors();
|
||||
|
||||
return view('admin/fediverse/blocked_actors', [
|
||||
'blockedActors' => $blockedActors,
|
||||
]);
|
||||
}
|
||||
|
||||
public function blockedDomains()
|
||||
{
|
||||
helper(['form']);
|
||||
|
||||
$blockedDomains = model('BlockedDomainModel')->getBlockedDomains();
|
||||
|
||||
return view('admin/fediverse/blocked_domains', [
|
||||
'blockedDomains' => $blockedDomains,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue