aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-16 22:04:00 -0700
committerFriendika <info@friendika.com>2011-03-16 22:04:00 -0700
commit47f0abf27e2aa0f5443badd2a43617b922662bba (patch)
treea45ece9f4045578437c0412c35b2e14b630f2f5a /mod
parent9d9176f87e6db2f34c85ee098cede766d0744e9b (diff)
downloadvolse-hubzilla-47f0abf27e2aa0f5443badd2a43617b922662bba.tar.gz
volse-hubzilla-47f0abf27e2aa0f5443badd2a43617b922662bba.tar.bz2
volse-hubzilla-47f0abf27e2aa0f5443badd2a43617b922662bba.zip
no sharing icon for private msgs
Diffstat (limited to 'mod')
-rw-r--r--mod/network.php3
-rw-r--r--mod/profile.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/mod/network.php b/mod/network.php
index ad028df1f..abdf59c48 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -219,6 +219,7 @@ function network_content(&$a, $update = 0) {
$cmnt_tpl = load_view_file('view/comment_item.tpl');
$like_tpl = load_view_file('view/like.tpl');
+ $noshare_tpl = load_view_file('view/like_noshare.tpl');
$tpl = load_view_file('view/wall_item.tpl');
$wallwall = load_view_file('view/wallwall_item.tpl');
@@ -362,7 +363,7 @@ function network_content(&$a, $update = 0) {
$likebuttons = '';
if($item['id'] == $item['parent']) {
- $likebuttons = replace_macros($like_tpl,array(
+ $likebuttons = replace_macros((($item['private']) ? $noshare_tpl : $like_tpl),array(
'$id' => $item['id'],
'$likethis' => t("I like this \x28toggle\x29"),
'$nolike' => t("I don't like this \x28toggle\x29"),
diff --git a/mod/profile.php b/mod/profile.php
index a464b7c06..c0989bd28 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -267,6 +267,7 @@ function profile_content(&$a, $update = 0) {
$cmnt_tpl = load_view_file('view/comment_item.tpl');
$like_tpl = load_view_file('view/like.tpl');
+ $noshare_tpl = load_view_file('view/like_noshare.tpl');
$tpl = load_view_file('view/wall_item.tpl');
@@ -309,7 +310,7 @@ function profile_content(&$a, $update = 0) {
if(can_write_wall($a,$a->profile['profile_uid'])) {
if($item['id'] == $item['parent']) {
- $likebuttons = replace_macros($like_tpl,array(
+ $likebuttons = replace_macros((($item['private']) ? $noshare_tpl : $like_tpl),array(
'$id' => $item['id'],
'$likethis' => t("I like this \x28toggle\x29"),
'$nolike' => t("I don't like this \x28toggle\x29"),