Progress on #1. Comments are now threaded, at least in the database, for normal view.
This commit is contained in:
parent
96c47a6577
commit
da1b47a029
2 changed files with 8 additions and 4 deletions
|
@ -77,14 +77,15 @@ function item_post(&$a) {
|
|||
);
|
||||
}
|
||||
// if this isn't the real parent of the conversation, find it
|
||||
if($r !== false && count($r)) {
|
||||
// We are now threading the comments, the parent may have a parent
|
||||
/*if($r !== false && count($r)) {
|
||||
$parid = $r[0]['parent'];
|
||||
if($r[0]['id'] != $r[0]['parent']) {
|
||||
$r = q("SELECT * FROM `item` WHERE `id` = `parent` AND `parent` = %d LIMIT 1",
|
||||
intval($parid)
|
||||
);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
if(($r === false) || (! count($r))) {
|
||||
notice( t('Unable to locate original post.') . EOL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue