$this->group = $this->getTargetGroup($this->arg('id'));
if (empty($this->group)) {
- $alias = Group_alias::staticGet(
+ $alias = Group_alias::getKV(
'alias',
common_canonical_nickname($this->arg('id'))
);
$this->showSingleJsonGroup($this->group);
break;
default:
- // TRANS: Client error displayed trying to execute an unknown API method showing a group.
+ // TRANS: Client error displayed when coming across a non-supported API method.
$this->clientError(_('API method not found.'), 404, $this->format);
break;
}