X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffollow.php;h=8910f54c0c086ebb1cdeaf3f579ac9b514e8f3ec;hb=016c99935cfbd4d320f15037cf00a53589a0615d;hp=58419dfd3ba54836f144ae3b3ff2d3148df98c50;hpb=357c0072bda29e9838eaedf1d157c534c596f2dd;p=friendica.git diff --git a/mod/follow.php b/mod/follow.php index 58419dfd3b..8910f54c0c 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -40,7 +40,6 @@ function follow_post(App $a) DI::baseUrl()->redirect('contact'); } - $uid = local_user(); $url = Probe::cleanURI($_REQUEST['url']); $return_path = 'follow?url=' . urlencode($url); @@ -48,7 +47,7 @@ function follow_post(App $a) // This is just a precaution if maybe this page is called somewhere directly via POST $_SESSION['fastlane'] = $url; - $result = Contact::createFromProbe($uid, $url, true); + $result = Contact::createFromProbe($a->user, $url, true); if ($result['success'] == false) { // Possibly it is a remote item and not an account