From 26e29d7f885f929793b9f0720fde8843e7bf8d6d Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 9 Aug 2012 20:31:06 -0700 Subject: zot basic comm structure (real basic) --- mod/post.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mod') diff --git a/mod/post.php b/mod/post.php index c5430d46e..c44e6114d 100644 --- a/mod/post.php +++ b/mod/post.php @@ -15,6 +15,17 @@ function post_post(&$a) { if($msgtype === 'notify') { + $hub = zot_gethub($_REQUEST['guid']); + if(! $hub) { + $result = zot_register_hub($_REQUEST); + if(! $result) { + $ret['message'] = 'Hub not available.'; + json_return_and_dir($ret); + } + } + // check which hub is primary and take action if mismatched + + // add to receive queue // qreceive_add($_REQUEST); -- cgit v1.2.3