use Friendica\Core\PConfig;
use Friendica\Core\System;
use Friendica\Database\DBM;
-use Friendica\Object\Contact;
-use Friendica\Object\Conversation;
-use Friendica\Object\Item;
+use Friendica\Model\Contact;
+use Friendica\Object\Thread;
+use Friendica\Object\Post;
require_once "include/bbcode.php";
require_once "include/acl_selectors.php";
$item['pagedrop'] = $page_dropping;
if ($item['id'] == $item['parent']) {
- $item_object = new Item($item);
- $conv->addThread($item_object);
+ $item_object = new Post($item);
+ $conv->addParent($item_object);
}
}
namespace Friendica\Object;
use Friendica\BaseObject;
-use Friendica\Object\Item;
+use Friendica\Object\Post;
require_once 'boot.php';
require_once 'include/text.php';
* @return mixed The inserted item on success
* false on failure
*/
- public function addThread($item)
+ public function addParent(Post $item)
{
$item_id = $item->getId();