Threaded comments are starting to work.
For now, only on normal view, and not during update
This commit is contained in:
parent
3484d3bc5f
commit
8ecf8167db
6 changed files with 781 additions and 331 deletions
|
@ -79,6 +79,7 @@ function item_post(&$a) {
|
|||
// if this isn't the real parent of the conversation, find it
|
||||
if($r !== false && count($r)) {
|
||||
$parid = $r[0]['parent'];
|
||||
$parent_uri = $r[0]['uri'];
|
||||
if($r[0]['id'] != $r[0]['parent']) {
|
||||
$r = q("SELECT * FROM `item` WHERE `id` = `parent` AND `parent` = %d LIMIT 1",
|
||||
intval($parid)
|
||||
|
@ -96,7 +97,7 @@ function item_post(&$a) {
|
|||
$parent = $r[0]['id'];
|
||||
|
||||
// multi-level threading - preserve the info but re-parent to our single level threading
|
||||
if(($parid) && ($parid != $parent))
|
||||
//if(($parid) && ($parid != $parent))
|
||||
$thr_parent = $parent_uri;
|
||||
|
||||
if($parent_item['contact-id'] && $uid) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue