}
}
+ public function isPerson()
+ {
+ return $this->localProfile()->isPerson();
+ }
+
/**
* @return boolean true if this is a remote peopletag
*/
try {
$this->updateAvatar($avatar);
} catch (Exception $ex) {
- common_log(LOG_WARNING, "Exception saving OStatus profile avatar: " . $ex->getMessage());
+ common_log(LOG_WARNING, "Exception updating OStatus profile avatar: " . $ex->getMessage());
}
}
}
$this->subscribe();
}
}
-
-/**
- * Exception indicating we've got a remote reference to a local user,
- * not a remote user!
- *
- * If we can ue a local profile after all, it's available as $e->profile.
- */
-class OStatusShadowException extends Exception
-{
- public $profile;
-
- /**
- * @param Profile $profile
- * @param string $message
- */
- function __construct($profile, $message) {
- $this->profile = $profile;
- parent::__construct($message);
- }
-}