Merge pull request #148 from oohlaf/fixes

Mark child posts as commentable when parent is set to commentable
This commit is contained in:
friendica 2013-09-20 16:12:08 -07:00
commit 06389f87df

View File

@ -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() {