Fixing variables
This commit is contained in:
parent
20e69c1e71
commit
a1828430e5
|
@ -115,7 +115,7 @@ class Delayed
|
|||
*/
|
||||
public static function getParametersForid(int $id)
|
||||
{
|
||||
$delayed = DBA::selectFirst('delayed-post', ['id', 'wid', 'delayed'], ['id' => $id]);
|
||||
$delayed = DBA::selectFirst('delayed-post', ['id', 'uid', 'wid', 'delayed'], ['id' => $id]);
|
||||
if (empty($delayed['wid'])) {
|
||||
return [];
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ class ScheduledStatuses extends BaseApi
|
|||
$uid = self::getCurrentUserID();
|
||||
|
||||
if (isset($parameters['id'])) {
|
||||
System::jsonExit(DI::mstdnScheduledStatus()->createFromId($parameters['id'], $uid));
|
||||
System::jsonExit(DI::mstdnScheduledStatus()->createFromId($parameters['id'], $uid)->toArray());
|
||||
}
|
||||
|
||||
$request = self::getRequest([
|
||||
|
|
|
@ -62,7 +62,7 @@ class ScheduledStatus extends BaseDataTransferObject
|
|||
{
|
||||
$visibility = ['public', 'private', 'unlisted'];
|
||||
|
||||
$this->id = (string)$delayed_post['uri-id'];
|
||||
$this->id = (string)$delayed_post['id'];
|
||||
$this->scheduled_at = DateTimeFormat::utc($delayed_post['scheduled_at'], DateTimeFormat::JSON);
|
||||
|
||||
$this->params = [
|
||||
|
|
Loading…
Reference in a new issue