]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/accountprofileblock.php
Work in progress: can create & cancel sub requests
[quix0rs-gnu-social.git] / lib / accountprofileblock.php
index a8bdb4715bf5794e8025ac0c699d3b1434dab15e..6a4021bf04577b024eeac23d7ee6cd3d892b10a4 100644 (file)
@@ -144,6 +144,9 @@ class AccountProfileBlock extends ProfileBlock
                         if ($cur->isSubscribed($this->profile)) {
                             $usf = new UnsubscribeForm($this->out, $this->profile);
                             $usf->show();
+                        } else if ($cur->hasPendingSubscription($this->profile)) {
+                            $sf = new CancelSubscriptionForm($this->out, $this->profile);
+                            $sf->show();
                         } else {
                             $sf = new SubscribeForm($this->out, $this->profile);
                             $sf->show();