This commit is contained in:
Eugen Rochko
2018-01-08 10:57:52 +01:00
committed by GitHub
parent e4a241abef
commit dbda87c31f
10 changed files with 31 additions and 138 deletions

View File

@ -21,10 +21,6 @@ class FollowRequest < ApplicationRecord
validates :account_id, uniqueness: { scope: :target_account_id }
def object_type
:follow
end
def authorize!
account.follow!(target_account, reblogs: show_reblogs)
MergeWorker.perform_async(target_account.id, account.id)