]> git.mxchange.org Git - friendica.git/commitdiff
Remote subscribe from a GNU Social site is now possible
authorMichael Vogel <icarus@dabo.de>
Sat, 13 Jun 2015 17:51:45 +0000 (19:51 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 13 Jun 2015 17:51:45 +0000 (19:51 +0200)
mod/xrd.php
view/templates/xrd_person.tpl

index 7cfb643df1413bfa5d1d211369edfdcb89ee4929..dfb188c138197f17bdd00aa2f608aec17df7cb25 100644 (file)
@@ -54,6 +54,7 @@ function xrd_init(&$a) {
                '$dspr'        => $dspr,
                '$salmon'      => $a->get_baseurl() . '/salmon/'        . $r[0]['nickname'],
                '$salmen'      => $a->get_baseurl() . '/salmon/'        . $r[0]['nickname'] . '/mention',
+               '$subscribe'   => $a->get_baseurl() . '/follow?url={uri}',
                '$modexp'      => 'data:application/magic-public-key,'  . $salmon_key,
                '$bigkey'      =>  salmon_key($r[0]['pubkey'])
        ));
index c5c6f538c7fbf2219cb69165d7d0669f9f40c213..f3ac0332b82ac403cba2d5446b2062c1fe0a25c5 100644 (file)
@@ -29,6 +29,8 @@
           href="{{$salmon}}" />
     <Link rel="http://salmon-protocol.org/ns/salmon-mention" 
           href="{{$salmen}}" />
+    <Link rel="http://ostatus.org/schema/1.0/subscribe"
+          template="{{$subscribe}}" />
     <Link rel="magic-public-key" 
           href="{{$modexp}}" />