forked from GNUsocial/gnu-social
only show notice form if user is logged in, looking at own page
darcs-hash:20080611181334-84dde-e9045179a94f8c78af9d660c57a37ce6f5fc9776.gz
This commit is contained in:
parent
d1215c4a85
commit
f4ed605998
@ -47,6 +47,12 @@ class AllAction extends StreamAction {
|
||||
common_show_header($profile->nickname . _t(" and friends"),
|
||||
array($this, 'show_header'), $user);
|
||||
|
||||
$cur = common_current_user();
|
||||
|
||||
if ($cur && $cur->id == $profile->id) {
|
||||
common_notice_form();
|
||||
}
|
||||
|
||||
$this->views_menu();
|
||||
|
||||
$this->show_notices($profile);
|
||||
|
@ -54,6 +54,12 @@ class ShowstreamAction extends StreamAction {
|
||||
|
||||
common_show_header($profile->nickname, array($this, 'show_header'), $user);
|
||||
|
||||
$cur = common_current_user();
|
||||
|
||||
if ($cur && $cur->id == $profile->id) {
|
||||
common_notice_form();
|
||||
}
|
||||
|
||||
$this->views_menu();
|
||||
|
||||
$this->show_profile($profile);
|
||||
|
@ -170,9 +170,6 @@ function common_show_header($pagetitle, $callable=NULL, $data=NULL, $notice=NULL
|
||||
'alt' => $config['site']['name'],
|
||||
'id' => 'logo'));
|
||||
common_element_end('a');
|
||||
if (common_logged_in()) {
|
||||
common_notice_form();
|
||||
}
|
||||
common_element_end('div');
|
||||
common_element_start('div', array('id' => 'content'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user