summaryrefslogtreecommitdiffstats
path: root/lib/Interfaces
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-04-19 22:12:12 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-05-03 16:31:15 -0100
commit9038dc4fb44b6404da5e2f7e7d303c81c186e669 (patch)
tree32d5d67b7123f33f4449a3dd833e510d69015a62 /lib/Interfaces
parent3352e75a0757a358238253c59542cf905ebfb040 (diff)
small fixes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Interfaces')
-rw-r--r--lib/Interfaces/Object/DocumentInterface.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Interfaces/Object/DocumentInterface.php b/lib/Interfaces/Object/DocumentInterface.php
index 863ac8fe..b0e6efc5 100644
--- a/lib/Interfaces/Object/DocumentInterface.php
+++ b/lib/Interfaces/Object/DocumentInterface.php
@@ -101,7 +101,7 @@ class DocumentInterface implements IActivityPubInterface {
*/
public function save(ACore $item) {
/** @var Document $item */
- if ($item->getParent()) {
+ if (!$item->isRoot()) {
$item->setParentId(
$item->getParent()
->getId()