aboutsummaryrefslogtreecommitdiffstats
path: root/mod/post.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-21 23:11:27 -0700
committerfriendica <info@friendica.com>2012-08-21 23:11:27 -0700
commit2140c2ea37737e591b562cccc71c63e95abd8667 (patch)
treed6cef87f445b95d2f5b40e4a7239bbff98545f43 /mod/post.php
parent72d38d75bf50b1d4696ab6c770d81f5751fbf061 (diff)
downloadvolse-hubzilla-2140c2ea37737e591b562cccc71c63e95abd8667.tar.gz
volse-hubzilla-2140c2ea37737e591b562cccc71c63e95abd8667.tar.bz2
volse-hubzilla-2140c2ea37737e591b562cccc71c63e95abd8667.zip
basic hub registration
Diffstat (limited to 'mod/post.php')
-rw-r--r--mod/post.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/post.php b/mod/post.php
index c44e6114d..a33c44e57 100644
--- a/mod/post.php
+++ b/mod/post.php
@@ -15,16 +15,16 @@ function post_post(&$a) {
if($msgtype === 'notify') {
- $hub = zot_gethub($_REQUEST['guid']);
+ $hub = zot_gethub($_REQUEST);
if(! $hub) {
$result = zot_register_hub($_REQUEST);
- if(! $result) {
+ if((! $result) || (! zot_gethub($_REQUEST))) {
$ret['message'] = 'Hub not available.';
- json_return_and_dir($ret);
+ json_return_and_die($ret);
}
}
- // check which hub is primary and take action if mismatched
+ // check which hub is primary and take action if mismatched
// add to receive queue
// qreceive_add($_REQUEST);