about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorSTJrInuyasha <MattWCSTRFAN@gmail.com>2017-07-10 09:05:06 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-07-10 18:05:06 +0200
commit7a889a8e125a03e109b225cd83b0abcbdc76d95b (patch)
tree52aeb321afcb04bbeb6fa0c61a5ae8eec700d1cf /app/controllers
parentd081d4a4226ba317a1b653aa6eef57543cbe4430 (diff)
Remote following success page (#4129)
* Added a success page to remote following
Includes follow-through links to web (the old redirect target) and back to the remote user's profile

* Use Account.new in spec instead of a fake with only id
(fixes spec)

* Fabricate(:account) over Account.new

* Remove self from the success text
(and all HTML with it)
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/authorize_follows_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/authorize_follows_controller.rb b/app/controllers/authorize_follows_controller.rb
index da4ef022a..dccd1c209 100644
--- a/app/controllers/authorize_follows_controller.rb
+++ b/app/controllers/authorize_follows_controller.rb
@@ -15,7 +15,7 @@ class AuthorizeFollowsController < ApplicationController
     if @account.nil?
       render :error
     else
-      redirect_to web_url("accounts/#{@account.id}")
+      render :success
     end
   rescue ActiveRecord::RecordNotFound, Mastodon::NotPermittedError
     render :error