a slight tweak to author_is_pmable hook to make it useful

This commit is contained in:
zotlabs
2017-05-31 18:14:12 -07:00
parent 98c18f416a
commit 35debe46bc
2 changed files with 6 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ By default author_is_pmable() returns true for 'zot' xchans, and false for all o
The plugin is passed an array
[ 'xchan' => $author_xchan, 'result' => 'unset' ]
[ 'xchan' => $author_xchan, 'abook' => abook record, '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.