]> cat aescling's git repositories - mastodon.git/commitdiff
Resolve URL for local account in follow authorization success view (#6324)
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
Mon, 22 Jan 2018 13:22:14 +0000 (22:22 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 22 Jan 2018 13:22:14 +0000 (14:22 +0100)
app/views/authorize_follows/success.html.haml

index f0b495689b83550d71154ea56eb8aa63b9b06224..63ff3bcf130751e850aa7cee5c3689e5a1e2ac08 100644 (file)
@@ -12,5 +12,5 @@
 
   .post-follow-actions
     %div= link_to t('authorize_follow.post_follow.web'), web_url("accounts/#{@account.id}"), class: 'button button--block'
-    %div= link_to t('authorize_follow.post_follow.return'), @account.url, class: 'button button--block'
+    %div= link_to t('authorize_follow.post_follow.return'), TagManager.instance.url_for(@account), class: 'button button--block'
     %div= t('authorize_follow.post_follow.close')