Port friendica/friendica#4cd8233f61647d805383f5786052ef034cebf4e1

This commit is contained in:
Domovoy 2012-09-10 09:57:34 +02:00
parent 1b82df60db
commit 7bef3023a8

View File

@ -96,8 +96,16 @@ class Item extends BaseObject {
$edpost = array($a->get_baseurl($ssl_state)."/editpost/".$item['id'], t("Edit")); $edpost = array($a->get_baseurl($ssl_state)."/editpost/".$item['id'], t("Edit"));
else else
$edpost = false; $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; $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( $drop = array(
'dropping' => $dropping, 'dropping' => $dropping,