From: Roland Häder Date: Sun, 23 Oct 2022 11:58:33 +0000 (+0200) Subject: Reverted: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=85394e195c1b7b79781045f1311856d42c1b7b71;p=friendica.git Reverted: - $post -> $item --- diff --git a/src/Object/Post.php b/src/Object/Post.php index a07c8d07e2..b4fcfcc094 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -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); }