diff options
author | zotlabs <mike@macgirvin.com> | 2017-06-14 16:07:21 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-06-14 16:07:21 -0700 |
commit | 234c64574b4ee5ca22b85ae2fecc301286423068 (patch) | |
tree | 7786bed424457e327f30b067bf0ef39c7446ac99 /include/items.php | |
parent | f28fa0ab5a46a231695a851f2345a3669419c842 (diff) | |
parent | 1f075d92bc4e47ae282f811d10c31cd6f09191a6 (diff) | |
download | volse-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-x | include/items.php | 5 |
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; |