exit(1);
}
-require_once INSTALLDIR . '/lib/apiauth.php';
-
/**
* Feed of ActivityStreams 'favorite' actions
*
{
parent::prepare($argarray);
- $this->_profile = Profile::staticGet('id', $this->trimmed('profile'));
+ $this->_profile = Profile::getKV('id', $this->trimmed('profile'));
if (empty($this->_profile)) {
// TRANS: Client exception thrown when requesting a favorite feed for a non-existing profile.
// TRANS: Subtitle for Atom favorites feed.
// TRANS: %1$s is a user nickname, %2$s is the StatusNet sitename.
- $feed->setSubtitle(sprintf(_("Notices %1$s has favorited on %2$s"),
+ $feed->setSubtitle(sprintf(_('Notices %1$s has favorited on %2$s'),
$this->_profile->getBestName(),
common_config('site', 'name')));
return;
}
- $notice = Notice::staticGet('uri', $note->id);
+ $notice = Notice::getKV('uri', $note->id);
if (empty($notice)) {
// XXX: import from listed URL or something
// TRANS: Client exception thrown when trying favorite a notice without content.
- throw new ClientException(_('Unknown note.'));
+ throw new ClientException(_('Unknown notice.'));
}
$old = Fave::pkeyGet(array('user_id' => $this->auth_user->id,
*/
function notify($fave, $notice, $user)
{
- $other = User::staticGet('id', $notice->profile_id);
+ $other = User::getKV('id', $notice->profile_id);
if ($other && $other->id != $user->id) {
if ($other->email && $other->emailnotifyfav) {
mail_notify_fave($other, $user, $notice);