X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fatompubshowsubscription.php;h=ee5a477d49eca4a75d04264b8137f8dd4c33260e;hb=4d17d9533552ea620b83109c550e250a5c236291;hp=0d8c3615196186ee5ac241207d79e3487bdd6d51;hpb=c7df5594d07867b54a1e698dee35602ad0dabbd2;p=quix0rs-gnu-social.git diff --git a/actions/atompubshowsubscription.php b/actions/atompubshowsubscription.php index 0d8c361519..ee5a477d49 100644 --- a/actions/atompubshowsubscription.php +++ b/actions/atompubshowsubscription.php @@ -70,7 +70,9 @@ class AtompubshowsubscriptionAction extends AtompubAction $subscribedId), 404); } - if (!$this->_subscriber->isSubscribed($this->_subscribed)) { + $this->_subscription = Subscription::pkeyGet(array('subscriber' => $subscriberId, + 'subscribed' => $subscribedId)); + if (!$this->_subscription instanceof Subscription) { // TRANS: Client exception thrown when trying to display a subscription for a non-subscribed profile ID. // TRANS: %1$d is the non-existing subscriber ID number, $2$d is the ID of the profile that was not subscribed to. $msg = sprintf(_('Profile %1$d not subscribed to profile %2$d.'),