aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-04 21:52:21 -0700
committerFriendika <info@friendika.com>2011-07-04 21:52:21 -0700
commit5e1335ac892ce07bf7b1a3a043f71b8abbed8dba (patch)
tree5aae28a78e95c402f9388eb6f0a3023bc6deb956 /include/conversation.php
parent1048ee744edf8904db1949a96859dcc9343f6092 (diff)
downloadvolse-hubzilla-5e1335ac892ce07bf7b1a3a043f71b8abbed8dba.tar.gz
volse-hubzilla-5e1335ac892ce07bf7b1a3a043f71b8abbed8dba.tar.bz2
volse-hubzilla-5e1335ac892ce07bf7b1a3a043f71b8abbed8dba.zip
don't show delete buttons on community page
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 40981d5f4..6c60b0b91 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -101,6 +101,11 @@ function conversation(&$a, $items, $mode, $update) {
$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
@@ -122,7 +127,7 @@ function conversation(&$a, $items, $mode, $update) {
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
@@ -174,8 +179,12 @@ function conversation(&$a, $items, $mode, $update) {
$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 = '';