use Friendica\Database\DBM;
use Friendica\Model\Contact;
use Friendica\Object\Thread;
-use Friendica\Object\Item;
+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);
+ $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 addParent($item)
+ public function addParent(Post $item)
{
$item_id = $item->getId();