Hubzilla Documentation:

Contents

can_comment_on_post



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