don't show delete buttons on community page
This commit is contained in:
parent
1048ee744e
commit
5e1335ac89
2 changed files with 12 additions and 3 deletions
|
@ -101,6 +101,11 @@ function conversation(&$a, $items, $mode, $update) {
|
||||||
$page_writeable = can_write_wall($a,$profile_owner);
|
$page_writeable = can_write_wall($a,$profile_owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($mode === 'community') {
|
||||||
|
$profile_owner = 0;
|
||||||
|
$page_writeable = false;
|
||||||
|
}
|
||||||
|
|
||||||
if($update)
|
if($update)
|
||||||
$return_url = $_SESSION['return_url'];
|
$return_url = $_SESSION['return_url'];
|
||||||
else
|
else
|
||||||
|
@ -122,7 +127,7 @@ function conversation(&$a, $items, $mode, $update) {
|
||||||
|
|
||||||
if(count($items)) {
|
if(count($items)) {
|
||||||
|
|
||||||
if($mode === 'network-new' || $mode === 'search') {
|
if($mode === 'network-new' || $mode === 'search' || $mode === 'community') {
|
||||||
|
|
||||||
// "New Item View" on network page or search page results
|
// "New Item View" on network page or search page results
|
||||||
// - just loop through the items and format them minimally for display
|
// - just loop through the items and format them minimally for display
|
||||||
|
@ -174,8 +179,12 @@ function conversation(&$a, $items, $mode, $update) {
|
||||||
$drop = '';
|
$drop = '';
|
||||||
|
|
||||||
localize_item($item);
|
localize_item($item);
|
||||||
|
if($mode === 'network-new')
|
||||||
|
$t = $droptpl;
|
||||||
|
else
|
||||||
|
$t = $fakedrop;
|
||||||
|
|
||||||
$drop = replace_macros($droptpl,array('$id' => $item['id']));
|
$drop = replace_macros($t,array('$id' => $item['id']));
|
||||||
$lock = '<div class="wall-item-lock"></div>';
|
$lock = '<div class="wall-item-lock"></div>';
|
||||||
$star = '';
|
$star = '';
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ function community_content(&$a, $update = 0) {
|
||||||
|
|
||||||
// we behave the same in message lists as the search module
|
// we behave the same in message lists as the search module
|
||||||
|
|
||||||
$o .= conversation($a,$r,'search',false);
|
$o .= conversation($a,$r,'community',false);
|
||||||
|
|
||||||
$o .= paginate($a);
|
$o .= paginate($a);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue