aboutsummaryrefslogtreecommitdiffstats
path: root/mod/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/post.php')
-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);