diff options
author | Max Kostikov <max@kostikov.co> | 2019-05-01 15:45:12 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-05-01 15:45:12 +0200 |
commit | 0d003e7450b6845e2fe0563c9bb04d67e7b7e360 (patch) | |
tree | ec61f71b8681048ae0def62237d27f2ff230fc2f /include | |
parent | 4a91d09c8662a661b197a5382196e683ccf4b78b (diff) | |
download | volse-hubzilla-0d003e7450b6845e2fe0563c9bb04d67e7b7e360.tar.gz volse-hubzilla-0d003e7450b6845e2fe0563c9bb04d67e7b7e360.tar.bz2 volse-hubzilla-0d003e7450b6845e2fe0563c9bb04d67e7b7e360.zip |
Preserve parent_mid with threaded comments
Diffstat (limited to 'include')
-rwxr-xr-x | include/items.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/items.php b/include/items.php index 7a5c2c3c3..95b696034 100755 --- a/include/items.php +++ b/include/items.php @@ -1875,12 +1875,9 @@ function item_store($arr, $allow_exec = false, $deliver = true) { // is the new message multi-level threaded? // even though we don't support it now, preserve the info // and re-attach to the conversation parent. - - // @FIXME when we'll start threaded comments support, - // now this respected on mid / parent_mid level (MK) if($r[0]['mid'] != $r[0]['parent_mid']) { - //$arr['parent_mid'] = $r[0]['parent_mid']; + $arr['parent_mid'] = $r[0]['parent_mid']; $z = q("SELECT * FROM item WHERE mid = '%s' AND parent_mid = '%s' AND uid = %d ORDER BY id ASC LIMIT 1", dbesc($r[0]['parent_mid']), |