refactor: rename all occurences of notes to statuses

This commit is contained in:
Yassine Doghri 2021-06-21 10:04:18 +00:00
commit 134a071add
No known key found for this signature in database
GPG key ID: 3E7F89498B960C9F
71 changed files with 908 additions and 908 deletions

View file

@ -11,25 +11,25 @@ declare(strict_types=1);
namespace App\Libraries;
use ActivityPub\Objects\NoteObject as ActivityPubNoteObject;
use App\Entities\Note;
use App\Entities\Status;
class NoteObject extends ActivityPubNoteObject
{
/**
* @param Note $note
* @param Status $status
*/
public function __construct($note)
public function __construct($status)
{
parent::__construct($note);
parent::__construct($status);
if ($note->episode_id) {
if ($status->episode_id) {
$this->content =
'<a href="' .
$note->episode->link .
$status->episode->link .
'" target="_blank" rel="noopener noreferrer">' .
$note->episode->title .
$status->episode->title .
'</a><br/>' .
$note->message_html;
$status->message_html;
}
}
}