X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fcancelgroup.php;h=3074e3ffa3141db4fb47f851a0dbc92f76fc6eea;hb=f79aec36feaa4760201a7e88d5b31513a3c458ba;hp=57df1a10a7b955470f97485998ed29440efdc3fe;hpb=c1a27922ba738f71b100a520e5db6f32985a307b;p=quix0rs-gnu-social.git diff --git a/actions/cancelgroup.php b/actions/cancelgroup.php index 57df1a10a7..3074e3ffa3 100644 --- a/actions/cancelgroup.php +++ b/actions/cancelgroup.php @@ -139,9 +139,9 @@ class CancelgroupAction extends Action parent::handle($args); try { - $this->profile->cancelJoinGroup($this->group); + $this->request->abort(); } catch (Exception $e) { - common_log(LOG_ERROR, "Exception canceling group sub: " . $e->getMessage()); + common_log(LOG_ERR, "Exception canceling group sub: " . $e->getMessage()); // TRANS: Server error displayed when cancelling a queued group join request fails. // TRANS: %1$s is the leaving user's nickname, $2$s is the group nickname for which the leave failed. $this->serverError(sprintf(_('Could not cancel request for user %1$s to join group %2$s.'),