X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fall.php;h=44e3fd2394be28d1ff6dfc1e5edf3b8b71dcf514;hb=d0559fdf4dafcaf8446b437f4af089c944a23d09;hp=83401d422d22cc667396ab726eed86c367062c1b;hpb=9f39fd31afe198fc78c669088710af64a9976c3d;p=quix0rs-gnu-social.git diff --git a/actions/all.php b/actions/all.php index 83401d422d..44e3fd2394 100644 --- a/actions/all.php +++ b/actions/all.php @@ -45,9 +45,8 @@ 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); - - $this->views_menu(); + array($this, 'show_header'), $user, + array($this, 'show_top')); $this->show_notices($profile); @@ -62,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(); + } + + $this->views_menu(); + } + function show_notices($profile) { $notice = DB_DataObject::factory('notice');