logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

account_unfollow_controller.rb (283B)


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