X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fitem.php;h=f25ea36b2c0c13ed9a08a24e968b8a3741bf4fcf;hb=d7410f9e47d50d652ae0d33ec0540b894c3dfc13;hp=3baf618ca8cb92fc3e8c5d44646688236a326a9b;hpb=f5c7006f30cf12f031737da72125abff238780d5;p=friendica.git diff --git a/mod/item.php b/mod/item.php index 3baf618ca8..f25ea36b2c 100644 --- a/mod/item.php +++ b/mod/item.php @@ -51,7 +51,6 @@ function item_post(&$a) { $message_id = ((x($_REQUEST,'message_id') && $api_source) ? strip_tags($_REQUEST['message_id']) : ''); $return_path = ((x($_REQUEST,'return')) ? $_REQUEST['return'] : ''); - $consensus = intval($_REQUEST['consensus']); $preview = ((x($_REQUEST,'preview')) ? intval($_REQUEST['preview']) : 0); @@ -177,10 +176,6 @@ function item_post(&$a) { // have been provided, and run any anti-spam plugins - // TODO - - - if((! can_write_wall($a,$profile_uid)) && (! $allow_moderated)) { notice( t('Permission denied.') . EOL) ; @@ -363,8 +358,7 @@ function item_post(&$a) { if((local_user()) && (local_user() == $profile_uid)) { $self = true; $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 1 LIMIT 1", - intval($_SESSION['uid']) - ); + intval($_SESSION['uid'])); } elseif(remote_user()) { if(is_array($_SESSION['remote'])) { @@ -656,15 +650,6 @@ function item_post(&$a) { if(!$thr_parent) $thr_parent = $uri; - - /* * - * to make consensus work, red requests the consensus flag from boot.php - * this have to be inserted into the lower $datarray - * - * if($consensus) - * $item_flags |= ITEM_CONSENSUS; - */ - $datarray = array(); $datarray['uid'] = $profile_uid; $datarray['type'] = $post_type;