aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-16 22:56:56 -0700
committerfriendica <info@friendica.com>2013-06-16 22:56:56 -0700
commit82539ba2bc93a6a84ce01492d37a725291ba32d9 (patch)
tree00077b7a12507a11149f035688991a0d42727554 /include
parent28cd8594a7dcaf7d21b8b92c44ace34dc8aa6dd4 (diff)
downloadvolse-hubzilla-82539ba2bc93a6a84ce01492d37a725291ba32d9.tar.gz
volse-hubzilla-82539ba2bc93a6a84ce01492d37a725291ba32d9.tar.bz2
volse-hubzilla-82539ba2bc93a6a84ce01492d37a725291ba32d9.zip
override comment policy until it's working
Diffstat (limited to 'include')
-rw-r--r--include/ItemObject.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php
index 351f446d4..e5185bef6 100644
--- a/include/ItemObject.php
+++ b/include/ItemObject.php
@@ -45,6 +45,10 @@ class Item extends BaseObject {
if(($this->observer) && (! $this->writable)) {
$this->commentable = can_comment_on_post($this->observer['xchan_hash'],$data);
+ if(! $this->commentable) {
+ logger('commentable: ' . $data['comment_policy']);
+ $this->commentable = true;
+ }
}
// logger('writable: ' . $this->writable);