- $user = User::staticGet('uri', $userURI);
- $remote = Profile::fromURI($remoteURI);
+ $user = User::getKV('uri', $userURI);
+ try {
+ $remote = Profile::fromUri($remoteURI);
+ } catch (UnknownUriException $e) {
+ // Don't retry. It's hard to tell whether it's because of
+ // lookup failures or because the URI is permanently gone.
+ // If we knew it was temporary, we'd return false here.
+ return true;
+ }