about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-04-05 03:20:37 +0200
committerGitHub <noreply@github.com>2017-04-05 03:20:37 +0200
commitaa464aa0d81607696e81b559471b089f4bb2ac11 (patch)
tree41fdf3a2227ce785bbf152d85e57236393509ea4 /app/controllers
parent41ba74b511916330771c097cd74f3bc07801291f (diff)
parenta23123e49c1449c807538bf75ff5db535a2aadf8 (diff)
Merge branch 'master' into patch-1
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/remote_follow_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/remote_follow_controller.rb b/app/controllers/remote_follow_controller.rb
index 7d4bfe6ce..1e3f786ec 100644
--- a/app/controllers/remote_follow_controller.rb
+++ b/app/controllers/remote_follow_controller.rb
@@ -8,6 +8,7 @@ class RemoteFollowController < ApplicationController
 
   def new
     @remote_follow = RemoteFollow.new
+    @remote_follow.acct = session[:remote_follow] if session.key?(:remote_follow)
   end
 
   def create
@@ -22,6 +23,8 @@ class RemoteFollowController < ApplicationController
         render(:new) && return
       end
 
+      session[:remote_follow] = @remote_follow.acct
+
       redirect_to Addressable::Template.new(redirect_url_link.template).expand(uri: "#{@account.username}@#{Rails.configuration.x.local_domain}").to_s
     else
       render :new