aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-14 16:07:21 -0700
committerzotlabs <mike@macgirvin.com>2017-06-14 16:07:21 -0700
commit234c64574b4ee5ca22b85ae2fecc301286423068 (patch)
tree7786bed424457e327f30b067bf0ef39c7446ac99 /include/items.php
parentf28fa0ab5a46a231695a851f2345a3669419c842 (diff)
parent1f075d92bc4e47ae282f811d10c31cd6f09191a6 (diff)
downloadvolse-hubzilla-234c64574b4ee5ca22b85ae2fecc301286423068.tar.gz
volse-hubzilla-234c64574b4ee5ca22b85ae2fecc301286423068.tar.bz2
volse-hubzilla-234c64574b4ee5ca22b85ae2fecc301286423068.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 206a97c42..fa61d71de 100755
--- a/include/items.php
+++ b/include/items.php
@@ -219,6 +219,11 @@ function can_comment_on_post($observer_xchan, $item) {
// logger('can_comment_on_post: comment_policy: ' . $item['comment_policy'], LOGGER_DEBUG);
+ $x = [ 'observer_hash' => $observer_xchan, 'item' => $item, 'allowed' => 'unset' ];
+ call_hooks('can_comment_on_post',$x);
+ if($x['allowed'] !== 'unset')
+ return $x['allowed'];
+
if(! $observer_xchan)
return false;