. * */ namespace Friendica\Worker; use Friendica\Core\Logger; use Friendica\Model\Post; class DelayedPublish { /** * Publish a post, used for delayed postings * * @param array $item * @param integer $notify * @param array $taglist * @param array $attachments * @param bool $unprepared * @param string $uri * @return void */ public static function execute(array $item, int $notify = 0, array $taglist = [], array $attachments = [], bool $unprepared = false, string $uri = '') { $id = Post\Delayed::publish($item, $notify, $taglist, $attachments, $unprepared, $uri); Logger::notice('Post published', ['id' => $id, 'uid' => $item['uid'], 'notify' => $notify, 'unprepared' => $unprepared]); } }