X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FProfile.php;h=c5652c6f7a2e992f6561acefe799c9bab3f2253c;hb=8d999f54d025cebcaeef9386ae9910def7af52c3;hp=4d44a56a04c5286bb941ba9dcb6da13665679d63;hpb=6fdab8394a6884d43210c2d260c1d5c1b321064c;p=friendica.git diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 4d44a56a04..c5652c6f7a 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -166,7 +166,7 @@ class Profile } } - $profile = User::getOwnerDataById($user['uid'], false); + $profile = !empty($user['uid']) ? User::getOwnerDataById($user['uid'], false) : []; if (empty($profile) && empty($profiledata)) { Logger::log('profile error: ' . DI::args()->getQueryString(), Logger::DEBUG); @@ -322,9 +322,9 @@ class Profile } } elseif ($profile_is_native) { if ($visitor_is_following) { - $unfollow_link = $visitor_base_path . '/unfollow?url=' . urlencode($profile_url); + $unfollow_link = $visitor_base_path . '/unfollow?url=' . urlencode($profile_url) . '&auto=1'; } else { - $follow_link = $visitor_base_path .'/follow?url=' . urlencode($profile_url); + $follow_link = $visitor_base_path .'/follow?url=' . urlencode($profile_url) . '&auto=1'; } } @@ -406,6 +406,7 @@ class Profile 'pending' => false, 'hidden' => false, 'archive' => false, + 'failed' => false, 'network' => Protocol::FEDERATED, ]); }