+ $remote = Remote_profile::staticGet('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);
+
+ if ($user->hasBlocked($profile)) {
+ // TRANS: Client error displayed when subscribing to a remote profile that is blocked form subscribing to.
+ $this->clientError(_('That user has blocked you from subscribing.'));
+ return;
+ }
+ }
+