]> git.mxchange.org Git - friendica.git/commitdiff
Stop automatically remove newly blocked contacts from their groups
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 24 Dec 2019 21:45:08 +0000 (16:45 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 24 Dec 2019 21:45:08 +0000 (16:45 -0500)
src/Model/Contact.php

index 534c99d465e4453d784cd2aedd1b941d62faa263..6c0436eea2b84845b46a311630f998f08a181fe2 100644 (file)
@@ -406,11 +406,6 @@ class Contact extends BaseObject
                }
 
                DBA::update('user-contact', ['blocked' => $blocked], ['cid' => $cdata['public'], 'uid' => $uid], true);
-
-               if ($blocked) {
-                       // Blocked contact can't be in any group
-                       self::removeFromGroups($cid);
-               }
        }
 
        /**