]> git.mxchange.org Git - friendica.git/blobdiff - include/conversation.php
remote_user can now support multiple contacts being logged in at once
[friendica.git] / include / conversation.php
index 1fc0642856015b4b0d80f690460662f53547e09a..13dfeeadd6d0d088b94572ae9fdee03f6c0299b2 100644 (file)
@@ -411,8 +411,17 @@ function prepare_threads_body($a, $items, $cmnt_tpl, $page_writeable, $mode, $pr
                        $edpost = array($a->get_baseurl($ssl_state)."/editpost/".$item['id'], t("Edit"));
                else
                        $edpost = false;
-               if((intval($item['contact-id']) && $item['contact-id'] == remote_user()) || ($item['uid'] == local_user()))
+
+               if($item['uid'] == local_user())
                        $dropping = true;
+               elseif(is_array($_SESSION['remote'])) {
+                       foreach($_SESSION['remote'] as $visitor) {
+                               if($visitor['cid'] == $item['contact-id']) {
+                                       $dropping = true;
+                                       break;
+                               }
+                       }
+               }
 
                $drop = array(
                        'dropping' => $dropping,