aboutsummaryrefslogtreecommitdiffstats
path: root/include/ItemObject.php
diff options
context:
space:
mode:
authorOlaf Conradi <olaf@conradi.org>2013-09-20 23:50:23 +0200
committerOlaf Conradi <olaf@conradi.org>2013-09-20 23:50:23 +0200
commitb520f3547f3543805110bfe9d5e5828d310df208 (patch)
tree97842d9fab7dbe5590434aacf92036cea95ab28f /include/ItemObject.php
parent7d0569f49b1f11187c54e7c8e5819e7b39174b9c (diff)
downloadvolse-hubzilla-b520f3547f3543805110bfe9d5e5828d310df208.tar.gz
volse-hubzilla-b520f3547f3543805110bfe9d5e5828d310df208.tar.bz2
volse-hubzilla-b520f3547f3543805110bfe9d5e5828d310df208.zip
Mark child posts as commentable when parent is set to commentable
Diffstat (limited to 'include/ItemObject.php')
-rw-r--r--include/ItemObject.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php
index 62a8c9c42..6c43d4e9e 100644
--- a/include/ItemObject.php
+++ b/include/ItemObject.php
@@ -296,9 +296,10 @@ class Item extends BaseObject {
return $this->threaded;
}
-
public function set_commentable($val) {
$this->commentable = $val;
+ foreach($this->get_children() as $child)
+ $child->set_commentable($val);
}
public function is_commentable() {