]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/approvegroup.php
Work in progress: subscription approval policy field in place on user, hooked up...
[quix0rs-gnu-social.git] / actions / approvegroup.php
index 5039cfae6bcf34964c6ea0c9160f1169e03600ae..95338a4af3c5556f87ca6e84c4671135e2152c18 100644 (file)
@@ -152,9 +152,9 @@ class ApprovegroupAction extends Action
 
         try {
             if ($this->approve) {
-                $this->profile->completeJoinGroup($this->group);
+                $this->request->complete();
             } elseif ($this->cancel) {
-                $this->profile->cancelJoinGroup($this->group);
+                $this->request->abort();
             }
         } catch (Exception $e) {
             common_log(LOG_ERROR, "Exception canceling group sub: " . $e->getMessage());