diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-12 19:32:15 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-12 19:32:15 -0700 |
commit | 3c440f70c66953735d01841453fa6a7ed244ef1c (patch) | |
tree | e2bc845a34168be418fa845866431b92e53be74b /boot.php | |
parent | f1977d420ea025e9d8b1f47fb41b25468d07218f (diff) | |
download | volse-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.php | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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 ''; }} |