projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95aa776
)
Reverted:
author
Roland Häder
<roland@mxchange.org>
Sun, 23 Oct 2022 11:58:33 +0000
(13:58 +0200)
committer
Roland Häder
<roland@mxchange.org>
Wed, 17 Jan 2024 00:03:01 +0000
(
01:03
+0100)
- $post -> $item
src/Object/Post.php
patch
|
blob
|
history
diff --git
a/src/Object/Post.php
b/src/Object/Post.php
index 2f2def004e823cfbd7f1661283a07829f66d129b..a4a4831389965c8b92ce88a3e96c86228ff2173c 100644
(file)
--- a/
src/Object/Post.php
+++ b/
src/Object/Post.php
@@
-783,7
+783,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()) {
Logger::error('Post object has no id', ['post' => $item]);
@@
-807,8
+807,8
@@
class Post
return false;
}
- $
post
->setParent($this);
- $this->children[] = $
post
;
+ $
item
->setParent($this);
+ $this->children[] = $
item
;
return end($this->children);
}