mirror of
https://github.com/friendica/friendica
synced 2025-04-25 23:50:11 +00:00
Move Object\Conversation to Object\Thread
- Move Object\Item to Object\Post
This commit is contained in:
parent
18d93cddf6
commit
70d047ba8e
3 changed files with 31 additions and 40 deletions
|
@ -9,7 +9,7 @@ use Friendica\Core\PConfig;
|
|||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Object\Conversation;
|
||||
use Friendica\Object\Thread;
|
||||
use Friendica\Object\Item;
|
||||
|
||||
require_once "include/bbcode.php";
|
||||
|
@ -840,7 +840,7 @@ function conversation(App $a, $items, $mode, $update, $preview = false) {
|
|||
// Normal View
|
||||
$page_template = get_markup_template("threaded_conversation.tpl");
|
||||
|
||||
$conv = new Conversation($mode, $preview);
|
||||
$conv = new Thread($mode, $preview);
|
||||
|
||||
/*
|
||||
* get all the topmost parents
|
||||
|
@ -881,7 +881,7 @@ function conversation(App $a, $items, $mode, $update, $preview = false) {
|
|||
|
||||
if ($item['id'] == $item['parent']) {
|
||||
$item_object = new Item($item);
|
||||
$conv->addThread($item_object);
|
||||
$conv->addParent($item_object);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue