]>
cat aescling's git repositories - mastodon.git/blob - app/controllers/remote_follow_controller.rb
1 # frozen_string_literal: true
3 class RemoteFollowController
< ApplicationController
6 before_action
:set_account
7 before_action
:gone, if: :suspended_account?
8 before_action
:set_body_classes
11 @remote_follow = RemoteFollow
.new(session_params
)
15 @remote_follow = RemoteFollow
.new(resource_params
)
17 if @remote_follow.valid
?
18 session
[:remote_follow] = @remote_follow.acct
19 redirect_to
@remote_follow.subscribe_address_for(@account)
28 params
.require(:remote_follow).permit(:acct)
32 { acct
: session
[:remote_follow] }
36 @account = Account
.find_local!
(params
[:account_username])
39 def suspended_account
?
44 @body_classes = 'modal-layout'
This page took 0.064201 seconds and 4 git commands to generate.