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

@@ -82,6 +82,9 @@ Hooks allow plugins/addons to "hook into" the code at many points and alter the
[zrl=[baseurl]/help/hook/build_pagehead]build_pagehead[/zrl]
Called when creating the HTML page header
[zrl=[baseurl]/help/hook/can_comment_on_post]can_comment_on_post[/zrl]
Called when deciding whether or not to present a comment box for a post
[zrl=[baseurl]/help/hook/change_channel]change_channel[/zrl]
Called when logging in to a channel (either during login or afterward through the channel manager)