1
0
Fork 0

Fixing variables

This commit is contained in:
Michael 2021-07-29 14:58:04 +00:00
parent 20e69c1e71
commit a1828430e5
3 changed files with 3 additions and 3 deletions

View file

@ -115,7 +115,7 @@ class Delayed
*/ */
public static function getParametersForid(int $id) 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'])) { if (empty($delayed['wid'])) {
return []; return [];
} }

View file

@ -40,7 +40,7 @@ class ScheduledStatuses extends BaseApi
$uid = self::getCurrentUserID(); $uid = self::getCurrentUserID();
if (isset($parameters['id'])) { if (isset($parameters['id'])) {
System::jsonExit(DI::mstdnScheduledStatus()->createFromId($parameters['id'], $uid)); System::jsonExit(DI::mstdnScheduledStatus()->createFromId($parameters['id'], $uid)->toArray());
} }
$request = self::getRequest([ $request = self::getRequest([

View file

@ -62,7 +62,7 @@ class ScheduledStatus extends BaseDataTransferObject
{ {
$visibility = ['public', 'private', 'unlisted']; $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->scheduled_at = DateTimeFormat::utc($delayed_post['scheduled_at'], DateTimeFormat::JSON);
$this->params = [ $this->params = [