mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 19:03:43 +01:00
Merge pull request #898 from SirCmpwn/remote-follow-improvements
Remote follow improvements
This commit is contained in:
commit
909d81923e
1 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,7 @@ class RemoteFollowController < ApplicationController
|
||||||
|
|
||||||
def new
|
def new
|
||||||
@remote_follow = RemoteFollow.new
|
@remote_follow = RemoteFollow.new
|
||||||
|
@remote_follow.acct = session[:remote_follow] if session.key?(:remote_follow)
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
@ -22,6 +23,8 @@ class RemoteFollowController < ApplicationController
|
||||||
render(:new) && return
|
render(:new) && return
|
||||||
end
|
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
|
redirect_to Addressable::Template.new(redirect_url_link.template).expand(uri: "#{@account.username}@#{Rails.configuration.x.local_domain}").to_s
|
||||||
else
|
else
|
||||||
render :new
|
render :new
|
||||||
|
|
Loading…
Reference in a new issue