mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-12 21:43:22 +02:00
5c5c6da4be
- update CI process to include quality stage (tests + code review) - add captainhook to install git pre-commit & pre-push hooks - remove .devcontainer Dockerfile to use project's docker-compose services: all services can now be started automatically using vscode - update docs/setup-development.md
30 lines
576 B
PHP
30 lines
576 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 App\Models\PodcastModel;
|
|
|
|
class PodcastActor extends \ActivityPub\Objects\ActorObject
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $rss;
|
|
|
|
public function __construct(Actor $actor)
|
|
{
|
|
parent::__construct($actor);
|
|
|
|
$podcast = (new PodcastModel())->where('actor_id', $actor->id)->first();
|
|
|
|
$this->rss = $podcast->feed_url;
|
|
}
|
|
}
|