mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 03:35:13 +00:00
really really fix lockview (cross fingers) ;-)
This commit is contained in:
parent
01a9c56ef9
commit
82389f8c1b
1 changed files with 7 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue