diff options
author | zotlabs <mike@macgirvin.com> | 2017-06-12 16:17:23 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-06-12 16:17:23 -0700 |
commit | 5b3e863323a6b70651454c0972a586e677f55c3d (patch) | |
tree | c72a0714fe37e0c320083d8eca8619e8f944a59d /doc/hook/can_comment_on_post.bb | |
parent | 6ce9eedb5fe746a70416fb66128d6b0ead6f949a (diff) | |
download | volse-hubzilla-5b3e863323a6b70651454c0972a586e677f55c3d.tar.gz volse-hubzilla-5b3e863323a6b70651454c0972a586e677f55c3d.tar.bz2 volse-hubzilla-5b3e863323a6b70651454c0972a586e677f55c3d.zip |
add 'can_comment_on_post' hook so we can better deal with the complications of Diaspora policy
Diffstat (limited to 'doc/hook/can_comment_on_post.bb')
-rw-r--r-- | doc/hook/can_comment_on_post.bb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/hook/can_comment_on_post.bb b/doc/hook/can_comment_on_post.bb new file mode 100644 index 000000000..2cfd3b2da --- /dev/null +++ b/doc/hook/can_comment_on_post.bb @@ -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 + |