make comments work again

This commit is contained in:
friendica 2013-09-10 23:25:56 -07:00
parent 5e230edb85
commit 5fbe4c1876

View File

@ -1624,11 +1624,12 @@ function item_store($arr,$allow_exec = false) {
// find the item we just created
$r = q("SELECT `id` FROM `item` WHERE `mid` = '%s' AND `uid` = %d ORDER BY `id` ASC ",
$r = q("SELECT * FROM `item` WHERE `mid` = '%s' AND `uid` = %d ORDER BY `id` ASC ",
$arr['mid'], // already dbesc'd
intval($arr['uid'])
);
if($r && count($r)) {
$current_post = $r[0]['id'];
$arr = $r[0]; // This will gives us a fresh copy of what's now in the DB and undo the db escaping, which really messes up the notifications