mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 21:18:00 +01:00
25 lines
550 B
PHP
25 lines
550 B
PHP
<?php
|
|
|
|
namespace Poniverse\Ponyfm\Mail;
|
|
|
|
class NewTrack extends BaseNotification
|
|
{
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
$artistName = $this->initiatingUser->display_name;
|
|
$trackTitle = $this->activityRecord->resource->title;
|
|
|
|
return $this->renderEmail(
|
|
'new-track',
|
|
"{$artistName} published \"{$trackTitle}\"",
|
|
[
|
|
'artist' => $artistName,
|
|
'trackTitle' => $trackTitle,
|
|
]);
|
|
}
|
|
}
|