fix search/new against possible email leakage

This commit is contained in:
friendica 2012-05-11 05:19:29 -07:00
parent 20229ce187
commit 4e0b0d4e43
1 changed files with 3 additions and 0 deletions

View File

@ -278,6 +278,9 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
else
$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']);
if($item['author-link'] && (! $item['author-name']))