mirror of
https://github.com/friendica/friendica
synced 2025-04-25 05:10:11 +00:00
Notify => Notification
Notifs => Notifications
This commit is contained in:
parent
e59a9fbef7
commit
0f932ae723
19 changed files with 250 additions and 254 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue