aboutsummaryrefslogtreecommitdiffstats
path: root/mod/lockview.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-08-19 16:04:38 -0700
committerfriendica <info@friendica.com>2014-08-19 16:04:38 -0700
commit82389f8c1b9e43050589da6ea3dda8cac399db9b (patch)
tree9db50897e3786bdd859211ee861f4ddd9b949484 /mod/lockview.php
parent01a9c56ef973f69111377025303d3c7364a4d2d6 (diff)
downloadvolse-hubzilla-82389f8c1b9e43050589da6ea3dda8cac399db9b.tar.gz
volse-hubzilla-82389f8c1b9e43050589da6ea3dda8cac399db9b.tar.bz2
volse-hubzilla-82389f8c1b9e43050589da6ea3dda8cac399db9b.zip
really really fix lockview (cross fingers) ;-)
Diffstat (limited to 'mod/lockview.php')
-rw-r--r--mod/lockview.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/mod/lockview.php b/mod/lockview.php
index 7d39f9e2f..6673ae709 100644
--- a/mod/lockview.php
+++ b/mod/lockview.php
@@ -33,7 +33,13 @@ function lockview_content(&$a) {
if(($item['item_private'] == 1) && (! strlen($item['allow_cid'])) && (! strlen($item['allow_gid']))
&& (! strlen($item['deny_cid'])) && (! strlen($item['deny_gid']))) {
- echo '<li>' . translate_scope($item['public_policy']) . '</li>';
+
+ // if the post is private, but public_policy is blank ("visible to the internet"), and there aren't any
+ // specific recipients, we're the recipient of a post with "bcc" or targeted recipients; so we'll just show it
+ // as unknown specific recipients. The sender will have the visibility list and will fall through to the
+ // next section.
+
+ echo '<li>' . translate_scope((! $item['public_policy']) ? PERMS_SPECIFIC : $item['public_policy']) . '</li>';
killme();
}
@@ -78,9 +84,5 @@ function lockview_content(&$a) {
echo $o . implode($l);
killme();
- if(array_key_exists('public_policy',$item) && $item['public_policy']) {
- echo '<li>' . translate_scope($item['public_policy']) . '</li>';
- killme();
- }
}