1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-24 07:06:34 +09:00

Fix MergeWorker being queued for remote users (#10355)

This commit is contained in:
Eugen Rochko 2019-03-24 12:36:26 +01:00 committed by GitHub
parent 0f9278c3d3
commit 45b849bad9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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