Merge pull request #1667 from annando/1506-remote-subscribe
Remote subscribe from a GNU Social site is now possible
This commit is contained in:
commit
4ec7102c9c
2 changed files with 3 additions and 0 deletions
|
@ -54,6 +54,7 @@ function xrd_init(&$a) {
|
||||||
'$dspr' => $dspr,
|
'$dspr' => $dspr,
|
||||||
'$salmon' => $a->get_baseurl() . '/salmon/' . $r[0]['nickname'],
|
'$salmon' => $a->get_baseurl() . '/salmon/' . $r[0]['nickname'],
|
||||||
'$salmen' => $a->get_baseurl() . '/salmon/' . $r[0]['nickname'] . '/mention',
|
'$salmen' => $a->get_baseurl() . '/salmon/' . $r[0]['nickname'] . '/mention',
|
||||||
|
'$subscribe' => $a->get_baseurl() . '/follow?url={uri}',
|
||||||
'$modexp' => 'data:application/magic-public-key,' . $salmon_key,
|
'$modexp' => 'data:application/magic-public-key,' . $salmon_key,
|
||||||
'$bigkey' => salmon_key($r[0]['pubkey'])
|
'$bigkey' => salmon_key($r[0]['pubkey'])
|
||||||
));
|
));
|
||||||
|
|
|
@ -29,6 +29,8 @@
|
||||||
href="{{$salmon}}" />
|
href="{{$salmon}}" />
|
||||||
<Link rel="http://salmon-protocol.org/ns/salmon-mention"
|
<Link rel="http://salmon-protocol.org/ns/salmon-mention"
|
||||||
href="{{$salmen}}" />
|
href="{{$salmen}}" />
|
||||||
|
<Link rel="http://ostatus.org/schema/1.0/subscribe"
|
||||||
|
template="{{$subscribe}}" />
|
||||||
<Link rel="magic-public-key"
|
<Link rel="magic-public-key"
|
||||||
href="{{$modexp}}" />
|
href="{{$modexp}}" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue