Add legacy notification endpoint for deprecated Notify entity

- Add dependencies to Notifications\Notification module class
This commit is contained in:
Hypolite Petovan 2022-03-03 09:07:37 -05:00
parent deafdcde95
commit b7cee324b0
7 changed files with 112 additions and 50 deletions

View file

@ -214,7 +214,7 @@ class FormattedNotify extends BaseFactory
foreach ($Notifies as $Notify) {
$formattedNotifications[] = new ValueObject\FormattedNotify(
'notification',
$this->baseUrl->get(true) . '/notification/' . $Notify->id,
$this->baseUrl->get(true) . '/notify/' . $Notify->id,
Contact::getAvatarUrlForUrl($Notify->url, $Notify->uid, Proxy::SIZE_MICRO),
$Notify->url,
strip_tags(BBCode::toPlaintext($Notify->msg)),