From 66058c6cf41791eeca418d9003aa6daa1a036ce2 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 13 Jun 2015 19:51:45 +0200 Subject: [PATCH] Remote subscribe from a GNU Social site is now possible --- mod/xrd.php | 1 + view/templates/xrd_person.tpl | 2 ++ 2 files changed, 3 insertions(+) diff --git a/mod/xrd.php b/mod/xrd.php index 7cfb643df1..dfb188c138 100644 --- a/mod/xrd.php +++ b/mod/xrd.php @@ -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']) )); diff --git a/view/templates/xrd_person.tpl b/view/templates/xrd_person.tpl index c5c6f538c7..f3ac0332b8 100644 --- a/view/templates/xrd_person.tpl +++ b/view/templates/xrd_person.tpl @@ -29,6 +29,8 @@ href="{{$salmon}}" /> + -- 2.39.5