fix author delete (non-owner)

This commit is contained in:
friendica 2014-05-14 03:10:36 -07:00
parent 2f1e4a6370
commit 722b6c78cb

View File

@ -852,10 +852,10 @@ function item_content(&$a) {
require_once('include/security.php'); require_once('include/security.php');
if((argc() == 3) && (argv(1) === 'drop') && intval(argv(2))) { if((argc() == 3) && (argv(1) === 'drop') && intval(argv(2))) {
require_once('include/items.php'); require_once('include/items.php');
$i = q("select id, uid, author_xchan, owner_xchan, source_xchan, item_restrict from item where id = %d and uid = %d limit 1", $i = q("select id, uid, author_xchan, owner_xchan, source_xchan, item_restrict from item where id = %d limit 1",
intval(argv(2)), intval(argv(2))
intval(local_user())
); );
if($i) { if($i) {