]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Contact.php
Don't show deleted contacts, set new AP contacts as "pending" until they are accepted
[friendica.git] / src / Model / Contact.php
index 669b1ac25f3b0bf023a4db56d50b1103b55653ac..7ff0032d231516d4adc7cf4cd20c2bf31eb4fa98 100644 (file)
@@ -1739,6 +1739,8 @@ class Contact extends BaseObject
 
                $hidden = (($ret['network'] === Protocol::MAIL) ? 1 : 0);
 
+               $pending = in_array($ret['network'], [Protocol::ACTIVITYPUB]);
+
                if (in_array($ret['network'], [Protocol::MAIL, Protocol::DIASPORA, Protocol::ACTIVITYPUB])) {
                        $writeable = 1;
                }
@@ -1774,7 +1776,7 @@ class Contact extends BaseObject
                                'hidden'  => $hidden,
                                'blocked' => 0,
                                'readonly'=> 0,
-                               'pending' => 0,
+                               'pending' => $pending,
                                'subhub'  => $subhub
                        ]);
                }