]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Contact.php
Follow/Unfollow contact with a single click
[friendica.git] / src / Module / Contact.php
index 8a7be5c893741d31b332e6987588ecfe992a64a8..87fff3e963bdad502a17481d137b107936042232 100644 (file)
@@ -314,9 +314,9 @@ class Contact extends BaseModule
                        $unfollow_link = '';
                        if (in_array($contact['network'], Protocol::NATIVE_SUPPORT)) {
                                if ($contact['uid'] && in_array($contact['rel'], [Model\Contact::SHARING, Model\Contact::FRIEND])) {
-                                       $unfollow_link = 'unfollow?url=' . urlencode($contact['url']);
+                                       $unfollow_link = 'unfollow?url=' . urlencode($contact['url']) . '&auto=1';
                                } elseif(!$contact['pending']) {
-                                       $follow_link = 'follow?url=' . urlencode($contact['url']);
+                                       $follow_link = 'follow?url=' . urlencode($contact['url']) . '&auto=1';
                                }
                        }