aboutsummaryrefslogtreecommitdiffstats
path: root/include/ItemObject.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-16 20:44:29 -0700
committerfriendica <info@friendica.com>2013-06-16 20:44:29 -0700
commit28cd8594a7dcaf7d21b8b92c44ace34dc8aa6dd4 (patch)
tree3ab9fa8c4b810cc9f5626e3585b45fb047623c5e /include/ItemObject.php
parent764ee785f5505c2be804a850b8e4029598d81739 (diff)
downloadvolse-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.php2
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);