exit(1);
}
-require_once INSTALLDIR . '/lib/apiauth.php';
-
/**
* Feed of group memberships for a user, in ActivityStreams format
*
$profileId = $this->trimmed('profile');
- $this->_profile = Profile::staticGet('id', $profileId);
+ $this->_profile = Profile::getKV('id', $profileId);
if (empty($this->_profile)) {
// TRANS: Client exception.
// TRANS: Title for group membership feed.
// TRANS: %s is a username.
- $feed->setTitle(sprintf(_("%s group memberships"),
+ $feed->setTitle(sprintf(_('Group memberships of %s'),
$this->_profile->getBestName()));
// TRANS: Subtitle for group membership feed.
if (Event::handle('StartAtomPubNewActivity', array(&$activity))) {
if ($activity->verb != ActivityVerb::JOIN) {
- // TRANS: Client error displayed when not using the POST verb.
- // TRANS: Do not translate POST.
+ // TRANS: Client error displayed when not using the join verb.
throw new ClientException(_('Can only handle join activities.'));
return;
}
return;
}
- $group = User_group::staticGet('uri', $groupObj->id);
+ $group = User_group::getKV('uri', $groupObj->id);
if (empty($group)) {
// XXX: import from listed URL or something