diff options
author | Friendika <info@friendika.com> | 2010-12-07 20:47:53 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-12-07 20:47:53 -0800 |
commit | a42b9ea3dea5e1490dd4aa4852760354d569ea51 (patch) | |
tree | c0a99dd7bbc6b479b040a8ef08cabee5f0f56e38 /mod/network.php | |
parent | e241c401cf21108f39f67e54f64f50ad139af221 (diff) | |
download | volse-hubzilla-a42b9ea3dea5e1490dd4aa4852760354d569ea51.tar.gz volse-hubzilla-a42b9ea3dea5e1490dd4aa4852760354d569ea51.tar.bz2 volse-hubzilla-a42b9ea3dea5e1490dd4aa4852760354d569ea51.zip |
display the fact that a conversation is private without disclosing the details of who can/cannot see it.
Diffstat (limited to 'mod/network.php')
-rw-r--r-- | mod/network.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/network.php b/mod/network.php index 7a81fd1a2..c52bb74fc 100644 --- a/mod/network.php +++ b/mod/network.php @@ -165,11 +165,13 @@ function network_content(&$a, $update = 0) { if(((activity_match($item['verb'],ACTIVITY_LIKE)) || (activity_match($item['verb'],ACTIVITY_DISLIKE))) && ($item['id'] != $item['parent'])) continue; - $lock = (($item['uid'] == local_user()) && (strlen($item['allow_cid']) || strlen($item['allow_gid']) - || strlen($item['deny_cid']) || strlen($item['deny_gid'])) + + $lock = ((($item['private']) || (($item['uid'] == local_user()) && (strlen($item['allow_cid']) || strlen($item['allow_gid']) + || strlen($item['deny_cid']) || strlen($item['deny_gid'])))) ? '<div class="wall-item-lock"><img src="images/lock_icon.gif" class="lockview" alt="' . t('Private Message') . '" onclick="lockview(event,' . $item['id'] . ');" /></div>' : '<div class="wall-item-lock"></div>'); + // Top-level wall post not written by the wall owner (wall-to-wall) // First figure out who owns it. |