Removed "insert" parameter

This commit is contained in:
Michael 2020-05-12 21:49:12 +00:00
parent 06da3084f5
commit c4062ddb3b
3 changed files with 7 additions and 9 deletions

View file

@ -36,13 +36,11 @@ use Friendica\Model\Post\Category;
use Friendica\Protocol\Activity;
use Friendica\Protocol\ActivityPub;
use Friendica\Protocol\Diaspora;
use Friendica\Protocol\OStatus;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Map;
use Friendica\Util\Network;
use Friendica\Util\Security;
use Friendica\Util\Strings;
use Friendica\Util\XML;
use Friendica\Worker\Delivery;
use Text_LanguageDetect;
use Friendica\Repository\PermissionSet as RepPermissionSet;
@ -1595,7 +1593,7 @@ class Item
return GRAVITY_UNKNOWN; // Should not happen
}
public static function insert($item, $dummy = false, $notify = false, $dontcache = false)
public static function insert($item, $notify = false, $dontcache = false)
{
$orig_item = $item;
@ -2277,7 +2275,7 @@ class Item
}
}
$distributed = self::insert($item, false, $notify, true);
$distributed = self::insert($item, $notify, true);
if (!$distributed) {
Logger::log("Distributed public item " . $itemid . " for user " . $uid . " wasn't stored", Logger::DEBUG);
@ -2344,7 +2342,7 @@ class Item
$item['contact-id'] = $item['author-id'];
}
$public_shadow = self::insert($item, false, false, true);
$public_shadow = self::insert($item, false, true);
Logger::log("Stored public shadow for thread ".$itemid." under id ".$public_shadow, Logger::DEBUG);
}
@ -2402,7 +2400,7 @@ class Item
unset($item['inform']);
$item['contact-id'] = Contact::getIdForURL($item['author-link']);
$public_shadow = self::insert($item, false, false, true);
$public_shadow = self::insert($item, false, true);
Logger::log("Stored public shadow for comment ".$item['uri']." under id ".$public_shadow, Logger::DEBUG);
@ -2788,7 +2786,7 @@ class Item
if ($contact['network'] != Protocol::FEED) {
// Store the original post
$result = self::insert($datarray2, false, false);
$result = self::insert($datarray2);
Logger::log('remote-self post original item - Contact '.$contact['url'].' return '.$result.' Item '.print_r($datarray2, true), Logger::DEBUG);
} else {
$datarray["app"] = "Feed";

View file

@ -2584,7 +2584,7 @@ class DFRN
// Turn this into a wall post.
$notify = Item::isRemoteSelf($importer, $item);
$posted_id = Item::insert($item, false, $notify);
$posted_id = Item::insert($item, $notify);
if ($notify) {
$posted_id = $notify;

View file

@ -511,7 +511,7 @@ class Feed {
$notify = PRIORITY_MEDIUM;
}
$id = Item::insert($item, false, $notify);
$id = Item::insert($item, $notify);
Logger::info("Feed for contact " . $contact["url"] . " stored under id " . $id);