]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/all.php
remove replybutton formatting
[quix0rs-gnu-social.git] / actions / all.php
index e51dc375c8d7c38fa1e20829e25f066b47836083..c19440052f157b5e18eed24e7d7b22dc5450b947 100644 (file)
@@ -31,7 +31,7 @@ class AllAction extends StreamAction {
                $user = User::staticGet('nickname', $nickname);
 
                if (!$user) {
-                       $this->no_such_user();
+                       $this->client_error(_t('No such user: ') . $nickname);
                        return;
                }
 
@@ -45,8 +45,9 @@ class AllAction extends StreamAction {
                # Looks like we're good; show the header
 
                common_show_header($profile->nickname . _t(" and friends"),
-                                                  array($this, 'show_header'), $user);
-
+                                                  array($this, 'show_header'), $user,
+                                                  array($this, 'show_top'));
+               
                $this->show_notices($profile);
                
                common_show_footer();
@@ -60,6 +61,16 @@ class AllAction extends StreamAction {
                                                                         'title' => _t('Feed for friends of ') . $user->nickname));
        }
 
+       function show_top($user) {
+               $cur = common_current_user();
+               
+               if ($cur && $cur->id == $user->id) {
+                       common_notice_form('all');
+               }
+               
+               $this->views_menu();
+       }
+       
        function show_notices($profile) {
 
                $notice = DB_DataObject::factory('notice');