]> git.mxchange.org Git - friendica.git/commitdiff
Finish renaming Object\Item to Object\Post
authorHypolite Petovan <mrpetovan@gmail.com>
Fri, 8 Dec 2017 04:33:36 +0000 (23:33 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Fri, 8 Dec 2017 04:33:36 +0000 (23:33 -0500)
include/conversation.php
src/Object/Post.php
src/Object/Thread.php

index ce937a7a71d05e612a4b0f4f96ff6375f4e39a57..6dd1a473ec4f3625736e78cb91423c98e45a0b1e 100644 (file)
@@ -10,7 +10,7 @@ use Friendica\Core\System;
 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";
@@ -880,7 +880,7 @@ function conversation(App $a, $items, $mode, $update, $preview = false) {
                                $item['pagedrop'] = $page_dropping;
 
                                if ($item['id'] == $item['parent']) {
-                                       $item_object = new Item($item);
+                                       $item_object = new Post($item);
                                        $conv->addParent($item_object);
                                }
                        }
index 231f2a5b84181f177fea50683113985fa2dced8a..8d56034a5e370eca285297d8c2d5bdd34c05f289 100644 (file)
@@ -45,7 +45,7 @@ class Post extends BaseObject
         *
         * @param array $data data array
         */
-       public function __construct($data)
+       public function __construct(array $data)
        {
                $a = self::getApp();
 
index 2a72f0f659144f1621a3872ff61743eca1d44d76..d159f41c96779d7459bf833022f066ad18646739 100644 (file)
@@ -5,7 +5,7 @@
 namespace Friendica\Object;
 
 use Friendica\BaseObject;
-use Friendica\Object\Item;
+use Friendica\Object\Post;
 
 require_once 'boot.php';
 require_once 'include/text.php';
@@ -120,7 +120,7 @@ class Thread extends BaseObject
         * @return mixed The inserted item on success
         *               false on failure
         */
-       public function addParent($item)
+       public function addParent(Post $item)
        {
                $item_id = $item->getId();