X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fremotesubscribe.php;h=7137b42a26f79749a881c72b6999f5b8f73e2da1;hb=3a246c17266d562e0510e5a332009dcfda43c1c7;hp=c2c00ab619d3a9863fa66af982eb3dc3194bac31;hpb=9fb08ec45e79f9cc782154ac8b8995e022e777e6;p=quix0rs-gnu-social.git diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php index c2c00ab619..7137b42a26 100644 --- a/actions/remotesubscribe.php +++ b/actions/remotesubscribe.php @@ -313,7 +313,14 @@ class RemotesubscribeAction extends Action { $req->set_parameter('omb_listenee_profile', common_profile_url($user->nickname)); $req->set_parameter('omb_listenee_nickname', $user->nickname); $req->set_parameter('omb_listenee_license', $config['license']['url']); + $profile = $user->getProfile(); + if (!$profile) { + common_log_db_error($user, 'SELECT', __FILE__); + $this->server_error(_('User without matching profile')); + return; + } + if ($profile->fullname) { $req->set_parameter('omb_listenee_fullname', $profile->fullname); }