Skip to content

Commit

Permalink
Fix MergeWorker being queued for remote users (mastodon#10355)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored Mar 24, 2019
1 parent 606ada5 commit ec012eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/follow_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class FollowRequest < ApplicationRecord

def authorize!
account.follow!(target_account, reblogs: show_reblogs, uri: uri)
MergeWorker.perform_async(target_account.id, account.id)
MergeWorker.perform_async(target_account.id, account.id) if account.local?
destroy!
end

Expand Down

0 comments on commit ec012eb

Please sign in to comment.