mirror of
https://github.com/friendica/friendica
synced 2025-04-25 08:30:11 +00:00
Quote for notifications
This commit is contained in:
parent
b6fcfebd56
commit
30093fd2ec
3 changed files with 6 additions and 5 deletions
|
@ -49,7 +49,7 @@ class Notifications extends BaseApi
|
|||
$id = $this->parameters['id'];
|
||||
try {
|
||||
$notification = DI::notification()->selectOneForUser($uid, ['id' => $id]);
|
||||
System::jsonExit(DI::mstdnNotification()->createFromNotification($notification));
|
||||
System::jsonExit(DI::mstdnNotification()->createFromNotification($notification, self::appSupportsQuotes()));
|
||||
} catch (\Exception $e) {
|
||||
DI::mstdnError()->RecordNotFound();
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ class Notifications extends BaseApi
|
|||
|
||||
foreach($Notifications as $Notification) {
|
||||
try {
|
||||
$mstdnNotifications[] = DI::mstdnNotification()->createFromNotification($Notification);
|
||||
$mstdnNotifications[] = DI::mstdnNotification()->createFromNotification($Notification, self::appSupportsQuotes());
|
||||
self::setBoundaries($Notification->id);
|
||||
} catch (\Exception $e) {
|
||||
// Skip this notification
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue