Renamed functions

This commit is contained in:
Michael 2021-05-09 18:44:08 +00:00
parent 591619e1d3
commit a696b7f427
5 changed files with 7 additions and 7 deletions

View file

@ -47,7 +47,7 @@ class Notifications extends BaseApi
if (!DBA::exists('notify', ['id' => $id, 'uid' => $uid])) {
DI::mstdnError()->RecordNotFound();
}
System::jsonExit(DI::mstdnNotification()->create($id));
System::jsonExit(DI::mstdnNotification()->createFromNotifyId($id));
}
// Return results older than this ID
@ -110,7 +110,7 @@ class Notifications extends BaseApi
$notify = DBA::select('notify', ['id'], $condition, $params);
while ($notification = DBA::fetch($notify)) {
$notifications[] = DI::mstdnNotification()->create($notification['id']);
$notifications[] = DI::mstdnNotification()->createFromNotifyId($notification['id']);
}
if (!empty($min_id)) {