]> git.mxchange.org Git - friendica.git/commitdiff
better test of email reply visibility
authorfriendica <info@friendica.com>
Fri, 11 May 2012 12:11:53 +0000 (05:11 -0700)
committerfriendica <info@friendica.com>
Fri, 11 May 2012 12:11:53 +0000 (05:11 -0700)
include/conversation.php
include/items.php

index e48a8e6d603acbc279b892f8653f028575c250a4..ff68462abdd84b58df3d1804d2a17adc722ea824 100644 (file)
@@ -447,8 +447,8 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
                                else {
 
                                        // prevent private email reply to public conversation from leaking.
-                                       if($item['private'] && ! $threads[$threadsid]['private'])
-                                               continue;
+                                       if($item['network'] === NETWORK_MAIL && local_user() != $item['uid'])
+                                                       continue;
 
                                        $comments_seen ++;
                                        $comment_lastcollapsed  = false;
index b1dc1708f04e134c3a84e017300f6da916fb6361..129499967abf0047e9967126f6b90a38e04142f4 100644 (file)
@@ -119,7 +119,7 @@ function get_feed_for(&$a, $dfrn_id, $owner_nick, $last_update, $direction = 0)
        $check_date = datetime_convert('UTC','UTC',$last_update,'Y-m-d H:i:s');
 
        $r = q("SELECT `item`.*, `item`.`id` AS `item_id`, 
-               `contact`.`name`, `contact`.`photo`, `contact`.`url`, 
+               `contact`.`name`, `contact`.`network`, `contact`.`photo`, `contact`.`url`, 
                `contact`.`name-date`, `contact`.`uri-date`, `contact`.`avatar-date`,
                `contact`.`thumb`, `contact`.`dfrn-id`, `contact`.`self`, 
                `contact`.`id` AS `contact-id`, `contact`.`uid` AS `contact-uid`,