Browse Source

Remote subscribe from a GNU Social site is now possible

pull/1667/head
Michael Vogel 6 years ago
parent
commit
66058c6cf4
2 changed files with 3 additions and 0 deletions
  1. +1
    -0
      mod/xrd.php
  2. +2
    -0
      view/templates/xrd_person.tpl

+ 1
- 0
mod/xrd.php View 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'])
));


+ 2
- 0
view/templates/xrd_person.tpl View 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}}" />


Loading…
Cancel
Save