aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-09 20:31:06 -0700
committerfriendica <info@friendica.com>2012-08-09 20:31:06 -0700
commit26e29d7f885f929793b9f0720fde8843e7bf8d6d (patch)
tree1199d381ccc573aab91618bc631cdc6529ef1d86 /mod
parentf2a7fcf8220ef497c8f39f0c9ec3175757f53128 (diff)
downloadvolse-hubzilla-26e29d7f885f929793b9f0720fde8843e7bf8d6d.tar.gz
volse-hubzilla-26e29d7f885f929793b9f0720fde8843e7bf8d6d.tar.bz2
volse-hubzilla-26e29d7f885f929793b9f0720fde8843e7bf8d6d.zip
zot basic comm structure (real basic)
Diffstat (limited to 'mod')
-rw-r--r--mod/post.php11
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);