diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-20 06:26:19 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:19 -0500 |
commit | 6317cb60e03762596ecae034518b4da4c60a8f64 (patch) | |
tree | d0ed510079f5373fe8d2cb420d93866ae32201f2 /app/models/follow_request.rb | |
parent | 4d08871722a9186f0c82c41c6a465982f80c06b2 (diff) |
[Federation, Feature] Add support for pull federation, account synchronization, and server-to-server migration
Diffstat (limited to 'app/models/follow_request.rb')
-rw-r--r-- | app/models/follow_request.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/follow_request.rb b/app/models/follow_request.rb index 3325e264c..cdf0f4bda 100644 --- a/app/models/follow_request.rb +++ b/app/models/follow_request.rb @@ -29,7 +29,10 @@ class FollowRequest < ApplicationRecord def authorize! account.follow!(target_account, reblogs: show_reblogs, uri: uri) - MergeWorker.perform_async(target_account.id, account.id) if account.local? + if account.local? + MergeWorker.perform_async(target_account.id, account.id) + ActivityPub::SyncAccountWorker.perform_async(target_account.id, every_page: true) unless target_account.local? + end destroy! end |