Consistently root autostitched conversations at the oldest notice.
This commit is contained in:
parent
d02f3c4648
commit
06235a3aa3
@ -1271,10 +1271,16 @@ class Notice extends Managed_DataObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If this isn't a reply to anything, then it's its own
|
// If this isn't a reply to anything, then it's its own
|
||||||
// root.
|
// root if it's the earliest notice in the conversation:
|
||||||
|
|
||||||
if (empty($this->reply_to)) {
|
if (empty($this->reply_to)) {
|
||||||
return $this;
|
$root = new Notice;
|
||||||
|
$root->conversation = $this->conversation;
|
||||||
|
$root->orderBy('notice.created ASC');
|
||||||
|
$root->find();
|
||||||
|
$root->fetch();
|
||||||
|
$root->free();
|
||||||
|
return $root;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_null($profile)) {
|
if (is_null($profile)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user