aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-10 23:25:56 -0700
committerfriendica <info@friendica.com>2013-09-10 23:25:56 -0700
commit5fbe4c187695a02118039e3056ee471e93c858b1 (patch)
tree357273bbf41baa5971eb52256f5088318f93128a /include/items.php
parent5e230edb85a2f10c43486e8d12b96e2a6ed1109c (diff)
downloadvolse-hubzilla-5fbe4c187695a02118039e3056ee471e93c858b1.tar.gz
volse-hubzilla-5fbe4c187695a02118039e3056ee471e93c858b1.tar.bz2
volse-hubzilla-5fbe4c187695a02118039e3056ee471e93c858b1.zip
make comments work again
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 60a678d1b..304dab316 100755
--- a/include/items.php
+++ b/include/items.php
@@ -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