mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-14 10:15:46 +00:00

- update .devcontainer settings: remove auto-formatting for php + set intelephense as default formatter - remove prettier php plugin as it lacks php 8 support - add captain hook action for checking style pre-commit - fix style with ecs on all files except views
29 lines
577 B
PHP
29 lines
577 B
PHP
<?php
|
|
|
|
/**
|
|
* @copyright 2021 Podlibre
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
* @link https://castopod.org/
|
|
*/
|
|
|
|
namespace App\Libraries;
|
|
|
|
use ActivityPub\Entities\Actor;
|
|
use ActivityPub\Objects\ActorObject;
|
|
use App\Models\PodcastModel;
|
|
|
|
class PodcastActor extends ActorObject
|
|
{
|
|
protected string $rss;
|
|
|
|
public function __construct(Actor $actor)
|
|
{
|
|
parent::__construct($actor);
|
|
|
|
$podcast = (new PodcastModel())->where('actor_id', $actor->id)
|
|
->first();
|
|
|
|
$this->rss = $podcast->feed_url;
|
|
}
|
|
}
|