fix search/new against possible email leakage
This commit is contained in:
parent
20229ce187
commit
4e0b0d4e43
1 changed files with 3 additions and 0 deletions
|
@ -278,6 +278,9 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
|
||||||
else
|
else
|
||||||
$nickname = $a->user['nickname'];
|
$nickname = $a->user['nickname'];
|
||||||
|
|
||||||
|
// prevent private email from leaking.
|
||||||
|
if($item['network'] === NETWORK_MAIL && local_user() != $item['uid'])
|
||||||
|
continue;
|
||||||
|
|
||||||
$profile_name = ((strlen($item['author-name'])) ? $item['author-name'] : $item['name']);
|
$profile_name = ((strlen($item['author-name'])) ? $item['author-name'] : $item['name']);
|
||||||
if($item['author-link'] && (! $item['author-name']))
|
if($item['author-link'] && (! $item['author-name']))
|
||||||
|
|
Loading…
Reference in a new issue