]> git.mxchange.org Git - friendica.git/blobdiff - mod/suggest.php
Prevent unfollowing contacts from networks not supported natively
[friendica.git] / mod / suggest.php
index 8330250a7bb756b2aded74a9c3797c7c7ffb79e9..81030842dcdf4dc220d05518e51a6fe2b157600f 100644 (file)
@@ -13,7 +13,8 @@ use Friendica\Model\Contact;
 use Friendica\Model\GContact;
 use Friendica\Util\Proxy as ProxyUtils;
 
-function suggest_init(App $a) {
+function suggest_init(App $a)
+{
        if (! local_user()) {
                return;
        }
@@ -74,6 +75,8 @@ function suggest_content(App $a)
                return $o;
        }
 
+       $id = 0;
+
        foreach ($r as $rr) {
 
                $connlnk = System::baseUrl() . '/follow/?url=' . (($rr['connect']) ? $rr['connect'] : $rr['url']);