aboutsummaryrefslogtreecommitdiffstats
path: root/doc/hook
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-12 16:17:23 -0700
committerMario Vavti <mario@mariovavti.com>2017-06-14 16:44:16 +0200
commit7c363310428d8f76356eb1423554cc2de6ebd4a0 (patch)
tree4ad738da079803bdc4115254f5c49ec8f3ea9d93 /doc/hook
parent36cfdd529b51997977340b0de0375af2025bd6d4 (diff)
downloadvolse-hubzilla-7c363310428d8f76356eb1423554cc2de6ebd4a0.tar.gz
volse-hubzilla-7c363310428d8f76356eb1423554cc2de6ebd4a0.tar.bz2
volse-hubzilla-7c363310428d8f76356eb1423554cc2de6ebd4a0.zip
add 'can_comment_on_post' hook so we can better deal with the complications of Diaspora policy
Diffstat (limited to 'doc/hook')
-rw-r--r--doc/hook/can_comment_on_post.bb13
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
+