]> git.mxchange.org Git - friendica.git/commitdiff
Remove unused parameter $network in Model\User::getDefaultGroup
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 6 Nov 2021 04:07:07 +0000 (00:07 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 21 Nov 2021 23:59:36 +0000 (18:59 -0500)
src/Model/Contact.php
src/Model/User.php

index 8d7799f636eb60a6d9f665f2237af835e3ffe879..50ae42418fc70c8bac1bf772ede7b3016d0a6c42 100644 (file)
@@ -2492,7 +2492,7 @@ class Contact
                $contact_id = $contact['id'];
                $result['cid'] = $contact_id;
 
-               Group::addMember(User::getDefaultGroup($uid, $contact["network"]), $contact_id);
+               Group::addMember(User::getDefaultGroup($uid), $contact_id);
 
                // Update the avatar
                self::updateAvatar($contact_id, $ret['photo']);
@@ -2699,7 +2699,7 @@ class Contact
                                        DI::intro()->save($intro);
                                }
 
-                               Group::addMember(User::getDefaultGroup($importer['uid'], $contact_record["network"]), $contact_record['id']);
+                               Group::addMember(User::getDefaultGroup($importer['uid']), $contact_record['id']);
 
                                if (($user['notify-flags'] & Notification\Type::INTRO) &&
                                        in_array($user['page-flags'], [User::PAGE_FLAGS_NORMAL])) {
index c43209b22552afcd494a223d4740ff6214a256d7..736612b0d158eb45e35059d5574ea372587c839b 100644 (file)
@@ -481,13 +481,12 @@ class User
        /**
         * Returns the default group for a given user and network
         *
-        * @param int    $uid     User id
-        * @param string $network network name
+        * @param int $uid User id
         *
         * @return int group id
         * @throws Exception
         */
-       public static function getDefaultGroup($uid, $network = '')
+       public static function getDefaultGroup($uid)
        {
                $user = DBA::selectFirst('user', ['def_gid'], ['uid' => $uid]);
                if (DBA::isResult($user)) {