1
0
Fork 0

Revert "Progress on #1. Comments are now threaded, at least in the database, for normal view."

This reverts commit da1b47a029.

Useless, comments are already threaded in the database using parent-uri
This commit is contained in:
Domovoy 2012-07-23 13:58:47 +02:00
commit 2a1657e361
2 changed files with 4 additions and 8 deletions

View file

@ -77,15 +77,14 @@ function item_post(&$a) {
);
}
// if this isn't the real parent of the conversation, find it
// We are now threading the comments, the parent may have a parent
/*if($r !== false && count($r)) {
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);