aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-20 16:12:08 -0700
committerfriendica <info@friendica.com>2013-09-20 16:12:08 -0700
commit06389f87dfd21aee7f152650d08b272f69f17faa (patch)
tree97842d9fab7dbe5590434aacf92036cea95ab28f /include
parent7d0569f49b1f11187c54e7c8e5819e7b39174b9c (diff)
parentb520f3547f3543805110bfe9d5e5828d310df208 (diff)
downloadvolse-hubzilla-06389f87dfd21aee7f152650d08b272f69f17faa.tar.gz
volse-hubzilla-06389f87dfd21aee7f152650d08b272f69f17faa.tar.bz2
volse-hubzilla-06389f87dfd21aee7f152650d08b272f69f17faa.zip
Merge pull request #148 from oohlaf/fixes
Mark child posts as commentable when parent is set to commentable
Diffstat (limited to 'include')
-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() {