X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fmicrosummary.php;h=b46c5bee532a907f532eac49fa9bf52e1d8da57f;hb=6edbf3ca781d20f2ec98daf32080c60e804d8215;hp=cb226b3e922825369b7959def20ca6b25d5a0c85;hpb=a1da43417e319b7cd49199667794163ad8e3d8ed;p=quix0rs-gnu-social.git diff --git a/actions/microsummary.php b/actions/microsummary.php index cb226b3e92..b46c5bee53 100644 --- a/actions/microsummary.php +++ b/actions/microsummary.php @@ -19,28 +19,30 @@ if (!defined('LACONICA')) { exit(1); } -class MicrosummaryAction extends StreamAction { +class MicrosummaryAction extends Action +{ - function handle($args) { + function handle($args) + { - parent::handle($args); + parent::handle($args); - $nickname = common_canonical_nickname($this->arg('nickname')); - $user = User::staticGet('nickname', $nickname); + $nickname = common_canonical_nickname($this->arg('nickname')); + $user = User::staticGet('nickname', $nickname); - if (!$user) { - $this->client_error(_('No such user'), 404); - return; - } - - $notice = $user->getCurrentNotice(); - - if (!$notice) { - $this->client_error(_('No current status'), 404); - } - - header('Content-Type: text/plain'); - - print $notice->content; - } + if (!$user) { + $this->clientError(_('No such user'), 404); + return; + } + + $notice = $user->getCurrentNotice(); + + if (!$notice) { + $this->clientError(_('No current status'), 404); + } + + header('Content-Type: text/plain'); + + print $user->nickname . ': ' . $notice->content; + } }