aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-12 19:32:15 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-12 19:32:15 -0700
commit3c440f70c66953735d01841453fa6a7ed244ef1c (patch)
treee2bc845a34168be418fa845866431b92e53be74b /boot.php
parentf1977d420ea025e9d8b1f47fb41b25468d07218f (diff)
downloadvolse-hubzilla-3c440f70c66953735d01841453fa6a7ed244ef1c.tar.gz
volse-hubzilla-3c440f70c66953735d01841453fa6a7ed244ef1c.tar.bz2
volse-hubzilla-3c440f70c66953735d01841453fa6a7ed244ef1c.zip
Provide the ability to subscribe to our user from other federated sites.
This is a read-only relationship until the rest of the salmon magic-envelope stuff lands
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index d8ebc0299..dcfb8a46a 100644
--- a/boot.php
+++ b/boot.php
@@ -2,10 +2,11 @@
set_time_limit(0);
-define ( 'BUILD_ID' , 1007 );
+define ( 'BUILD_ID', 1007 );
+define ( 'DFRN_PROTOCOL_VERSION', '2.0');
-define ( 'EOL', "<br />\r\n");
-define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
+define ( 'EOL', "<br />\r\n");
+define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
define ( 'REGISTER_CLOSED', 0);
define ( 'REGISTER_APPROVE', 1);
@@ -34,6 +35,7 @@ define ( 'NAMESPACE_TOMB' , 'http://purl.org/atompub/tombstones/1.0' )
define ( 'NAMESPACE_ACTIVITY', 'http://activitystrea.ms/spec/1.0/' );
define ( 'NAMESPACE_ACTIVITY_SCHEMA', 'http://activitystrea.ms/schema/1.0/');
define ( 'NAMESPACE_SALMON_ME', 'http://salmon-protocol.org/ns/magic-env');
+define ( 'NAMESPACE_OSTATUSSUB', 'http://ostatus.org/schema/1.0/subscribe');
define ( 'ACTIVITY_LIKE', NAMESPACE_ACTIVITY_SCHEMA . 'like' );
define ( 'ACTIVITY_DISLIKE', NAMESPACE_DFRN . '/dislike' );
@@ -848,6 +850,10 @@ function webfinger_dfrn($s) {
foreach($links as $link)
if($link['@attributes']['rel'] === NAMESPACE_DFRN)
return $link['@attributes']['href'];
+ foreach($links as $link)
+ if($link['@attributes']['rel'] === NAMESPACE_OSTATUSSUB)
+ return 'stat:' . $link['@attributes']['template'];
+
}
return '';
}}