1
0
Fork 0

Quote for notifications

This commit is contained in:
Michael 2023-01-25 20:35:10 +00:00
commit 30093fd2ec
3 changed files with 6 additions and 5 deletions

View file

@ -47,11 +47,12 @@ class Notification extends BaseFactory
/**
* @param Notifications\Entity\Notification $Notification
* @param bool $display_quote Display quoted posts
*
* @return MstdnNotification
* @throws UnexpectedNotificationTypeException
*/
public function createFromNotification(Notifications\Entity\Notification $Notification): MstdnNotification
public function createFromNotification(Notifications\Entity\Notification $Notification, bool $display_quotes): MstdnNotification
{
$type = self::getType($Notification);
if (empty($type)) {
@ -62,7 +63,7 @@ class Notification extends BaseFactory
if ($Notification->targetUriId) {
try {
$status = $this->mstdnStatusFactory->createFromUriId($Notification->targetUriId, $Notification->uid);
$status = $this->mstdnStatusFactory->createFromUriId($Notification->targetUriId, $Notification->uid, $display_quotes);
} catch (\Throwable $th) {
$status = null;
}