Fix array index

This commit is contained in:
Michael 2021-07-29 15:01:09 +00:00
parent a1828430e5
commit c9eca1edeb

View file

@ -63,7 +63,7 @@ class ScheduledStatus extends BaseDataTransferObject
$visibility = ['public', 'private', 'unlisted']; $visibility = ['public', 'private', 'unlisted'];
$this->id = (string)$delayed_post['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['delayed'], DateTimeFormat::JSON);
$this->params = [ $this->params = [
'text' => BBCode::convert(BBCode::setMentionsToNicknames($parameters['item']['body'] ?? ''), false, BBCode::API), 'text' => BBCode::convert(BBCode::setMentionsToNicknames($parameters['item']['body'] ?? ''), false, BBCode::API),