]> git.mxchange.org Git - friendica.git/commitdiff
Port friendica/friendica#4cd8233f61647d805383f5786052ef034cebf4e1
authorDomovoy <domovoy@errlock.org>
Mon, 10 Sep 2012 07:57:34 +0000 (09:57 +0200)
committerDomovoy <domovoy@errlock.org>
Mon, 10 Sep 2012 07:57:34 +0000 (09:57 +0200)
object/Item.php

index 51ad6562d17edbd6abab845ad78f4c49390ba2a1..314f95eaff90f51d89942f9490ed27aa37c1ff26 100644 (file)
@@ -96,8 +96,16 @@ class Item extends BaseObject {
                        $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($this->get_data_value('uid') == local_user())
                        $dropping = true;
+               elseif(is_array($_SESSION['remote'])) {
+                       foreach($_SESSION['remote'] as $visitor) {
+                               if($visitor['cid'] == $this->get_data_value('contact-id')) {
+                                       $dropping = true;
+                                       break;
+                               }
+                       }
+               }
 
                $drop = array(
                        'dropping' => $dropping,