mirror of
https://github.com/friendica/friendica
synced 2025-04-27 02:30:10 +00:00
Delay unprepared posts
This commit is contained in:
parent
c787281eff
commit
0eb4a600b0
8 changed files with 58 additions and 25 deletions
|
@ -33,11 +33,12 @@ class DelayedPublish
|
|||
* @param integer $notify
|
||||
* @param array $taglist
|
||||
* @param array $attachments
|
||||
* @param bool $unprepared
|
||||
* @return void
|
||||
*/
|
||||
public static function execute(array $item, int $notify = 0, array $taglist = [], array $attachments = [])
|
||||
public static function execute(array $item, int $notify = 0, array $taglist = [], array $attachments = [], bool $unprepared = false)
|
||||
{
|
||||
$id = Post\Delayed::publish($item, $notify, $taglist, $attachments);
|
||||
Logger::notice('Post published', ['id' => $id, 'uid' => $item['uid'], 'cid' => $item['contact-id'], 'notify' => $notify]);
|
||||
$id = Post\Delayed::publish($item, $notify, $taglist, $attachments, $unprepared);
|
||||
Logger::notice('Post published', ['id' => $id, 'uid' => $item['uid'], 'cid' => $item['contact-id'], 'notify' => $notify, 'unprepared' => $unprepared]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue