Notify => Notification
Notifs => Notifications
This commit is contained in:
@@ -5905,7 +5905,7 @@ function api_friendica_notification($type)
|
||||
if ($a->argc!==3) {
|
||||
throw new BadRequestException("Invalid argument count");
|
||||
}
|
||||
$notes = DI::notify()->getAll([], ['seen' => 'ASC', 'date' => 'DESC'], 50);
|
||||
$notes = DI::notification()->getAll([], ['seen' => 'ASC', 'date' => 'DESC'], 50);
|
||||
|
||||
if ($type == "xml") {
|
||||
$xmlnotes = [];
|
||||
@@ -5947,7 +5947,7 @@ function api_friendica_notification_seen($type)
|
||||
|
||||
$id = (!empty($_REQUEST['id']) ? intval($_REQUEST['id']) : 0);
|
||||
|
||||
$nm = DI::notify();
|
||||
$nm = DI::notification();
|
||||
$note = $nm->getByID($id);
|
||||
if (is_null($note)) {
|
||||
throw new BadRequestException("Invalid argument");
|
||||
|
||||
Reference in New Issue
Block a user