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