From 3c440f70c66953735d01841453fa6a7ed244ef1c Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Tue, 12 Oct 2010 19:32:15 -0700 Subject: 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 --- boot.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'boot.php') 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', "
\r\n"); -define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); +define ( 'EOL', "
\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 ''; }} -- cgit v1.2.3