]> git.mxchange.org Git - friendica.git/commitdiff
Reverted:
authorRoland Häder <roland@mxchange.org>
Sun, 23 Oct 2022 11:58:33 +0000 (13:58 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 23 Jun 2025 20:54:01 +0000 (22:54 +0200)
- $post -> $item

src/Object/Post.php

index a07c8d07e2c466f48900e0ed873415f9c420945a..b4fcfcc094d0acb4d51902026f91dcce8c0c3e96 100644 (file)
@@ -790,7 +790,7 @@ class Post
         * @return Post|bool Last Post object or bool on any error
         * @throws \Exception
         */
-       public function addChild(Post $post)
+       public function addChild(Post $item)
        {
                if (!$item->getId()) {
                        DI::logger()->error('Post object has no id', ['post' => $item]);
@@ -814,8 +814,8 @@ class Post
                        return false;
                }
 
-               $post->setParent($this);
-               $this->children[] = $post;
+               $item->setParent($this);
+               $this->children[] = $item;
 
                return end($this->children);
        }