mirror of
https://github.com/friendica/friendica
synced 2025-04-24 12:30:10 +00:00
Function renamed, documentation added
This commit is contained in:
parent
aac965be7d
commit
93263a820d
4 changed files with 9 additions and 5 deletions
|
@ -72,7 +72,7 @@ class ScheduledStatuses extends BaseApi
|
|||
$uid = self::getCurrentUserID();
|
||||
|
||||
if (isset($parameters['id'])) {
|
||||
System::jsonExit(DI::mstdnScheduledStatus()->createFromId($parameters['id'], $uid)->toArray());
|
||||
System::jsonExit(DI::mstdnScheduledStatus()->createFromDelayedPostId($parameters['id'], $uid)->toArray());
|
||||
}
|
||||
|
||||
$request = self::getRequest([
|
||||
|
@ -104,7 +104,7 @@ class ScheduledStatuses extends BaseApi
|
|||
$statuses = [];
|
||||
while ($post = DBA::fetch($posts)) {
|
||||
self::setBoundaries($post['id']);
|
||||
$statuses[] = DI::mstdnScheduledStatus()->createFromId($post['id'], $uid);
|
||||
$statuses[] = DI::mstdnScheduledStatus()->createFromDelayedPostId($post['id'], $uid);
|
||||
}
|
||||
DBA::close($posts);
|
||||
|
||||
|
|
|
@ -190,7 +190,7 @@ class Statuses extends BaseApi
|
|||
if (empty($id)) {
|
||||
DI::mstdnError()->InternalError();
|
||||
}
|
||||
System::jsonExit(DI::mstdnScheduledStatus()->createFromId($id, $uid)->toArray());
|
||||
System::jsonExit(DI::mstdnScheduledStatus()->createFromDelayedPostId($id, $uid)->toArray());
|
||||
}
|
||||
|
||||
$id = Item::insert($item, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue