diff options
author | Olaf Conradi <olaf@conradi.org> | 2013-09-20 23:50:23 +0200 |
---|---|---|
committer | Olaf Conradi <olaf@conradi.org> | 2013-09-20 23:50:23 +0200 |
commit | b520f3547f3543805110bfe9d5e5828d310df208 (patch) | |
tree | 97842d9fab7dbe5590434aacf92036cea95ab28f /include/ItemObject.php | |
parent | 7d0569f49b1f11187c54e7c8e5819e7b39174b9c (diff) | |
download | volse-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.php | 3 |
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() { |