Merge pull request #898 from SirCmpwn/remote-follow-improvements

Remote follow improvements
rebase/4.0.0rc2
Eugen 2017-04-05 02:54:03 +02:00 committed by GitHub
commit 909d81923e
1 changed files with 3 additions and 0 deletions

View File

@ -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