mirror of
https://github.com/friendica/friendica
synced 2025-04-27 14:30:11 +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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue