diff options
author | friendica <info@friendica.com> | 2013-06-16 20:44:29 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-06-16 20:44:29 -0700 |
commit | 28cd8594a7dcaf7d21b8b92c44ace34dc8aa6dd4 (patch) | |
tree | 3ab9fa8c4b810cc9f5626e3585b45fb047623c5e /include/ItemObject.php | |
parent | 764ee785f5505c2be804a850b8e4029598d81739 (diff) | |
download | volse-hubzilla-28cd8594a7dcaf7d21b8b92c44ace34dc8aa6dd4.tar.gz volse-hubzilla-28cd8594a7dcaf7d21b8b92c44ace34dc8aa6dd4.tar.bz2 volse-hubzilla-28cd8594a7dcaf7d21b8b92c44ace34dc8aa6dd4.zip |
implement 'can_comment_on_post()' which doesn't require a separate DB lookup per item.
Diffstat (limited to 'include/ItemObject.php')
-rw-r--r-- | include/ItemObject.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php index ccd192ff5..351f446d4 100644 --- a/include/ItemObject.php +++ b/include/ItemObject.php @@ -44,7 +44,7 @@ class Item extends BaseObject { $this->commentable = $this->writable; if(($this->observer) && (! $this->writable)) { - $this->commentable = perm_is_allowed($this->data['uid'],$this->observer['xchan_hash'],'post_comments'); + $this->commentable = can_comment_on_post($this->observer['xchan_hash'],$data); } // logger('writable: ' . $this->writable); |