mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-22 16:51:20 +00:00

- rename podlibre to adaures - rename castopod-host to castopod - simplify README and redirect to docs site - move INSTALL and UPDATE docs - add new gitlabci pipeline to deploy docs - upgrade node to v16 in Dockerfile
31 lines
659 B
PHP
31 lines
659 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* @copyright 2021 Ad Aures
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
* @link https://castopod.org/
|
|
*/
|
|
|
|
namespace App\Libraries;
|
|
|
|
use App\Entities\Post;
|
|
use Modules\Fediverse\Objects\NoteObject as FediverseNoteObject;
|
|
|
|
class NoteObject extends FediverseNoteObject
|
|
{
|
|
/**
|
|
* @param Post $post
|
|
*/
|
|
public function __construct($post)
|
|
{
|
|
parent::__construct($post);
|
|
|
|
if ($post->episode_id) {
|
|
$this->content =
|
|
'<a href="' . $post->episode->link . '">' . $post->episode->title . '</a><br/>' . $post->message_html;
|
|
}
|
|
}
|
|
}
|