From 9d7a88b40dff8ea49e7185d71e7bad4139b1d289 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 25 Sep 2017 23:14:02 -0700 Subject: 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() --- Zotlabs/Module/Post.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'Zotlabs/Module/Post.php') 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; } } -- cgit v1.2.3 From 86e888e5ebf4090dbab33a28a68fa67b93566417 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 25 Sep 2017 23:39:48 -0700 Subject: whitespace --- Zotlabs/Module/Post.php | 2 -- 1 file changed, 2 deletions(-) (limited to 'Zotlabs/Module/Post.php') diff --git a/Zotlabs/Module/Post.php b/Zotlabs/Module/Post.php index 76b74a338..f67cbf020 100644 --- a/Zotlabs/Module/Post.php +++ b/Zotlabs/Module/Post.php @@ -26,8 +26,6 @@ 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()); - - // notreached; exit; } -- cgit v1.2.3