diff options
author | zotlabs <mike@macgirvin.com> | 2017-09-25 23:14:02 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-09-25 23:14:02 -0700 |
commit | 9d7a88b40dff8ea49e7185d71e7bad4139b1d289 (patch) | |
tree | 5eabc9cb3aea017d2cec8d4a7641bf0540f26dae /Zotlabs/Module | |
parent | be8061b64b47d96ae67e672bf2835e8cec73d979 (diff) | |
download | volse-hubzilla-9d7a88b40dff8ea49e7185d71e7bad4139b1d289.tar.gz volse-hubzilla-9d7a88b40dff8ea49e7185d71e7bad4139b1d289.tar.bz2 volse-hubzilla-9d7a88b40dff8ea49e7185d71e7bad4139b1d289.zip |
move the Link header initialisation from Router (where it does not really belong) to Webserver, where we do similar module specific initialisations prior to calling Router->Dispatch()
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Post.php | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/Zotlabs/Module/Post.php b/Zotlabs/Module/Post.php index dba26075f..76b74a338 100644 --- a/Zotlabs/Module/Post.php +++ b/Zotlabs/Module/Post.php @@ -24,18 +24,13 @@ class Post extends \Zotlabs\Web\Controller { } function post() { + if(array_key_exists('data',$_REQUEST)) { + $z = new \Zotlabs\Zot\Receiver($_REQUEST['data'], get_config('system', 'prvkey'), new \Zotlabs\Zot\ZotHandler()); - - - - - - - - $z = new \Zotlabs\Zot\Receiver($_REQUEST['data'], get_config('system', 'prvkey'), new \Zotlabs\Zot\ZotHandler()); + // notreached; + exit; + } - // notreached; - exit; } } |