diff options
author | friendica <info@friendica.com> | 2012-08-09 20:31:06 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-09 20:31:06 -0700 |
commit | 26e29d7f885f929793b9f0720fde8843e7bf8d6d (patch) | |
tree | 1199d381ccc573aab91618bc631cdc6529ef1d86 /mod/post.php | |
parent | f2a7fcf8220ef497c8f39f0c9ec3175757f53128 (diff) | |
download | volse-hubzilla-26e29d7f885f929793b9f0720fde8843e7bf8d6d.tar.gz volse-hubzilla-26e29d7f885f929793b9f0720fde8843e7bf8d6d.tar.bz2 volse-hubzilla-26e29d7f885f929793b9f0720fde8843e7bf8d6d.zip |
zot basic comm structure (real basic)
Diffstat (limited to 'mod/post.php')
-rw-r--r-- | mod/post.php | 11 |
1 files changed, 11 insertions, 0 deletions
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); |