X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FOMB%2Factions%2Ffinishremotesubscribe.php;h=e933716f9e92931e5a1bc199d74011c8cad59041;hb=2a4dc77a633cc78907934fd93200ac16d55be78e;hp=fb98dbda6d595efb198a21af2c98978e42f35c0c;hpb=e95f77d34c501d345e731ccf6bc722034d155b77;p=quix0rs-gnu-social.git diff --git a/plugins/OMB/actions/finishremotesubscribe.php b/plugins/OMB/actions/finishremotesubscribe.php index fb98dbda6d..e933716f9e 100644 --- a/plugins/OMB/actions/finishremotesubscribe.php +++ b/plugins/OMB/actions/finishremotesubscribe.php @@ -74,7 +74,7 @@ class FinishremotesubscribeAction extends Action /* Create user objects for both users. Do it early for request validation. */ - $user = User::staticGet('uri', $service->getListeneeURI()); + $user = User::getKV('uri', $service->getListeneeURI()); if (!$user) { // TRANS: Client error displayed when subscribing to a remote profile that does not exist. @@ -82,7 +82,7 @@ class FinishremotesubscribeAction extends Action return; } - $other = User::staticGet('uri', $service->getListenerURI()); + $other = User::getKV('uri', $service->getListenerURI()); if ($other) { // TRANS: Client error displayed when subscribing to a remote profile that is a local profile. @@ -90,12 +90,12 @@ class FinishremotesubscribeAction extends Action return; } - $remote = Remote_profile::staticGet('uri', $service->getListenerURI()); + $remote = Remote_profile::getKV('uri', $service->getListenerURI()); if ($remote) { // Note remote profile may not have been saved yet. // @fixme not convinced this is correct at all! - $profile = Profile::staticGet($remote->id); + $profile = Profile::getKV($remote->id); if ($user->hasBlocked($profile)) { // TRANS: Client error displayed when subscribing to a remote profile that is blocked form subscribing to. @@ -132,7 +132,7 @@ class FinishremotesubscribeAction extends Action /* The service URLs are not accessible from datastore, so setting them after insertion of the profile. */ - $remote = Remote_profile::staticGet('uri', $service->getListenerURI()); + $remote = Remote_profile::getKV('uri', $service->getListenerURI()); $orig_remote = clone($remote); $remote->postnoticeurl =