闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
284 B

  1. # frozen_string_literal: true
  2. class AccountFollowController < ApplicationController
  3. include AccountControllerConcern
  4. before_action :authenticate_user!
  5. def create
  6. FollowService.new.call(current_user.account, @account.acct)
  7. redirect_to account_path(@account)
  8. end
  9. end