]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/microsummary.php
Changed @id to @class for notices ul
[quix0rs-gnu-social.git] / actions / microsummary.php
index 080d3f3029f11ddc283f6f4edc8bd122c1527e06..b46c5bee532a907f532eac49fa9bf52e1d8da57f 100644 (file)
 
 if (!defined('LACONICA')) { exit(1); }
 
-class MicrosummaryAction extends Action {
+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;
+    }
 }