about summary refs log tree commit diff
path: root/app/controllers/account_follow_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/account_follow_controller.rb')
-rw-r--r--app/controllers/account_follow_controller.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/controllers/account_follow_controller.rb b/app/controllers/account_follow_controller.rb
new file mode 100644
index 000000000..185a355f8
--- /dev/null
+++ b/app/controllers/account_follow_controller.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+class AccountFollowController < ApplicationController
+  include AccountControllerConcern
+
+  before_action :authenticate_user!
+
+  def create
+    FollowService.new.call(current_user.account, @account.acct)
+    redirect_to account_path(@account)
+  end
+end