if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError(
- _('API method not found!'),
+ _('API method not found.'),
404,
$this->format
);
if ($this->user->hasFave($this->notice)) {
$this->clientError(
- _('This status is already a favorite!'),
+ _('This status is already a favorite.'),
403,
$this->format
);
return;
}
- $fave = Fave::addNew($this->user, $this->notice);
+ $fave = Fave::addNew($this->user->getProfile(), $this->notice);
if (empty($fave)) {
$this->clientError(