Newer
Older
<?php

Yassine Doghri
committed
declare(strict_types=1);
/**
* @copyright 2020 Ad Aures
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
namespace App\Controllers;

Yassine Doghri
committed
use Modules\Analytics\AnalyticsTrait;

Yassine Doghri
committed
use Modules\Fediverse\Controllers\ActorController as FediverseActorController;

Yassine Doghri
committed
class ActorController extends FediverseActorController
{
use AnalyticsTrait;
* @var list<string>

Yassine Doghri
committed
protected $helpers = ['svg', 'components', 'misc', 'seo'];
public function follow(): string
{
// Prevent analytics hit when authenticated

Yassine Doghri
committed
if (! auth()->loggedIn()) {

Yassine Doghri
committed
// @phpstan-ignore-next-line
$this->registerPodcastWebpageHit($this->actor->podcast->id);
}
helper(['form', 'components', 'svg']);
$data = [
// @phpstan-ignore-next-line
'metatags' => get_follow_metatags($this->actor),
'actor' => $this->actor,
return view('podcast/follow', $data);