return true;
}
- function prepare($args)
+ function prepare(array $args = array())
{
parent::prepare($args);
if (empty($nickname_arg)) {
// TRANS: Client error displayed when requesting Friends of a Friend feed without providing a group nickname.
$this->clientError(_('No such group.'), 404);
- return false;
}
$this->nickname = common_canonical_nickname($nickname_arg);
if (!$local) {
// TRANS: Client error displayed when requesting Friends of a Friend feed for a non-local group.
$this->clientError(_('No such group.'), 404);
- return false;
}
$this->group = User_group::getKV('id', $local->group_id);
if (!$this->group) {
// TRANS: Client error displayed when requesting Friends of a Friend feed for a nickname that is not a group.
$this->clientError(_('No such group.'), 404);
- return false;
}
common_set_returnto($this->selfUrl());
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
header('Content-Type: application/rdf+xml');