]> git.mxchange.org Git - friendica.git/commitdiff
Removed "insert" parameter
authorMichael <heluecht@pirati.ca>
Tue, 12 May 2020 21:49:12 +0000 (21:49 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 12 May 2020 21:49:12 +0000 (21:49 +0000)
src/Model/Item.php
src/Protocol/DFRN.php
src/Protocol/Feed.php

index 78dd6aff23221165605ffbe42807c376bc79ce61..e2ea9eb816f33133fca3e11105ac563506facaab 100644 (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";
index fbcaf8d4b5888c02d0fc08ae9807033ca45b0346..08ce162716e66b074e4095813694faef99fcf608 100644 (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;
index baf439dc026dcac5bae6ecc950d9fc25e29c7263..35e2cd5778487d8611de09b4f389da0e86d1898d 100644 (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);