$page_writeable = can_write_wall($a,$profile_owner);
}
+ if($mode === 'community') {
+ $profile_owner = 0;
+ $page_writeable = false;
+ }
+
if($update)
$return_url = $_SESSION['return_url'];
else
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
// - just loop through the items and format them minimally for display
$drop = '';
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>';
$star = '';
// 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);