]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/DelayedPublish.php
Detection of local requests
[friendica.git] / src / Worker / DelayedPublish.php
index db37ba306789cfa9ee986cf1b70405e368163703..3707cf53b2c8f7e152bb4d4b709e6e050c783c46 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -33,11 +33,13 @@ class DelayedPublish
          * @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 = [])
+       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);
-               Logger::notice('Post published', ['id' => $id, 'uid' => $item['uid'], 'cid' => $item['contact-id'], 'notify' => $notify]);
+               $id = Post\Delayed::publish($item, $notify, $taglist, $attachments, $unprepared, $uri);
+               Logger::notice('Post published', ['id' => $id, 'uid' => $item['uid'], 'notify' => $notify, 'unprepared' => $unprepared]);
        }
 }