mirror of
https://github.com/friendica/friendica
synced 2025-04-23 20:30:10 +00:00
Respect the postopts values for scheduled posts
This commit is contained in:
parent
266ee26240
commit
6a23b17c95
6 changed files with 54 additions and 49 deletions
|
@ -186,7 +186,7 @@ class Statuses extends BaseApi
|
|||
if (!empty($request['scheduled_at'])) {
|
||||
$item['guid'] = Item::guid($item, true);
|
||||
$item['uri'] = Item::newURI($item['uid'], $item['guid']);
|
||||
$id = Post\Delayed::add($item['uri'], $item, PRIORITY_HIGH, false, $request['scheduled_at']);
|
||||
$id = Post\Delayed::add($item['uri'], $item, PRIORITY_HIGH, Post\Delayed::PREPARED, $request['scheduled_at']);
|
||||
if (empty($id)) {
|
||||
DI::mstdnError()->InternalError();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue