X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fitem.php;h=f25ea36b2c0c13ed9a08a24e968b8a3741bf4fcf;hb=d7410f9e47d50d652ae0d33ec0540b894c3dfc13;hp=91a94974e9a232cd0b7c1e2a55893fe0ee69c41b;hpb=c73d9611983b05cd1207d69c71a157c051b3f2e8;p=friendica.git diff --git a/mod/item.php b/mod/item.php index 91a94974e9..f25ea36b2c 100644 --- a/mod/item.php +++ b/mod/item.php @@ -176,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) ; @@ -362,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'])) {