mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-11 08:45:45 +00:00

- move and refactor Image.php from Libraries to Entities folder - update some database field names / types - update composer packages
31 lines
592 B
PHP
31 lines
592 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
|
|
{
|
|
/**
|
|
* @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;
|
|
}
|
|
}
|