Preserve parent_mid with threaded comments
This commit is contained in:
parent
4a91d09c86
commit
0d003e7450
@ -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']),
|
||||
|
Reference in New Issue
Block a user