aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-22 22:58:09 -0800
committerfriendica <info@friendica.com>2015-02-22 22:58:09 -0800
commit1383915f865a26fe06c959d155f118b5934b3de7 (patch)
tree29db64206d1a003541d8584d448850e75a50a6c4 /mod
parentd0e7fc76cd112dde0947540c84274358d8f84560 (diff)
downloadvolse-hubzilla-1383915f865a26fe06c959d155f118b5934b3de7.tar.gz
volse-hubzilla-1383915f865a26fe06c959d155f118b5934b3de7.tar.bz2
volse-hubzilla-1383915f865a26fe06c959d155f118b5934b3de7.zip
notes about private realm registrations and multiple primary directories.
Diffstat (limited to 'mod')
-rw-r--r--mod/regdir.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/mod/regdir.php b/mod/regdir.php
index eecc99ca5..f24ee3951 100644
--- a/mod/regdir.php
+++ b/mod/regdir.php
@@ -1,6 +1,18 @@
<?php
+/**
+ * With args, register a directory server for this realm
+ * With no args, return a JSON array of directory servers for this realm
+
+ * FIXME: Not yet implemented: Some realms may require authentication to join their realm.
+ * The RED_GLOBAL realm does not require authentication.
+ * We would then need a flag in the site table to indicate that they've been
+ * validated by the PRIMARY directory for that realm. Sites claiming to be PRIMARY
+ * but are not the realm PRIMARY will be marked invalid.
+ */
+
+
function regdir_init(&$a) {
$result = array('success' => false);
@@ -32,7 +44,7 @@ function regdir_init(&$a) {
json_return_and_die($result);
}
- $f = zot_finger('sys@' . $m['host']);
+ $f = zot_finger('[system]@' . $m['host']);
if($f['success']) {
$j = json_decode($f['body'],true);
if($j['success'] && $j['guid']) {