From 4f5e9d77b24be8adeefa7823f52a2277808ec11a Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 5 Mar 2017 20:45:21 -0800 Subject: remove include/probe.php which has never completed development and has never been used --- doc/hook/probe_well_known.bb | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 doc/hook/probe_well_known.bb (limited to 'doc/hook') diff --git a/doc/hook/probe_well_known.bb b/doc/hook/probe_well_known.bb deleted file mode 100644 index 62898c536..000000000 --- a/doc/hook/probe_well_known.bb +++ /dev/null @@ -1,3 +0,0 @@ -[h2]probe_well_known[/h2] - -This hook is under construction and not currently used - see include/probe.php \ No newline at end of file -- cgit v1.2.3 From b2a51db14e61e3f742b4a0e11bcb22e5c6e12800 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 27 Mar 2017 15:49:48 -0700 Subject: add 'author_is_pmable()' function with plugin hooks to control whether or not to display a 'send mail' link in the thread author menu. --- doc/hook/author_is_pmable.bb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 doc/hook/author_is_pmable.bb (limited to 'doc/hook') diff --git a/doc/hook/author_is_pmable.bb b/doc/hook/author_is_pmable.bb new file mode 100644 index 000000000..708350673 --- /dev/null +++ b/doc/hook/author_is_pmable.bb @@ -0,0 +1,14 @@ +[h2]author_is_pmable[/h2] + +Called from thread action menu before returning a 'send mail' link for the post author. Not all authors will be able to receive private mail, for instance those on other networks with incompatible mail systems. + +By default author_is_pmable() returns true for 'zot' xchans, and false for all others. + +The plugin is passed an array + + [ 'xchan' => $author_xchan, 'result' => 'unset' ] + +A plugin which sets the 'result' to something besides 'unset' will over-ride the default behaviour. A value of true will enable the 'send mail' link and the private mail recipient will be set to the author's xchan_hash. A value of false will disable the 'send mail' link. + + + -- cgit v1.2.3