1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?php
- if (!defined('STATUSNET') && !defined('LACONICA')) {
- exit(1);
- }
- class MicrosummaryAction extends Action
- {
-
- function handle($args)
- {
- parent::handle($args);
- $nickname = common_canonical_nickname($this->arg('nickname'));
- $user = User::getKV('nickname', $nickname);
- if (!$user) {
-
- $this->clientError(_('No such user.'), 404);
- }
- $notice = $user->getCurrentNotice();
- if (!$notice) {
-
- $this->clientError(_('No current status.'), 404);
- }
- header('Content-Type: text/plain');
- print $user->nickname . ': ' . $notice->content;
- }
- function isReadOnly($args)
- {
- return true;
- }
- }
|