add 'can_comment_on_post' hook so we can better deal with the complications of Diaspora policy

This commit is contained in:
zotlabs
2017-06-12 16:17:23 -07:00
parent 6ce9eedb5f
commit 5b3e863323
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
[h3]can_comment_on_post[/h3]
Called when deciding whether or not to display a comment box for a post.
Hook data (array):
observer_hash => xchan_hash of current observer
item => posted item
allowed => 'unset'
To over-ride the default behaviour, change allowed to true or false