diff options
author | Takeshi Umeda <noel.yoshiba@gmail.com> | 2020-04-24 05:04:18 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 22:04:18 +0200 |
commit | 46b2cc184fab294f540b3cc1ffa3d9e6ac2c9fbf (patch) | |
tree | 014fab0a13709e6432a2d8750623d8149591b92a /app/models | |
parent | c5c8f680317a182c4794505007ef227a4294a18e (diff) |
Fix enable/disable relay failures (#13535)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/relay.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/relay.rb b/app/models/relay.rb index 870f31979..d6ddd30ed 100644 --- a/app/models/relay.rb +++ b/app/models/relay.rb @@ -27,7 +27,7 @@ class Relay < ApplicationRecord payload = Oj.dump(follow_activity(activity_id)) update!(state: :pending, follow_activity_id: activity_id) - DeliveryFailureTracker.track_success!(inbox_url) + DeliveryFailureTracker.reset!(inbox_url) ActivityPub::DeliveryWorker.perform_async(payload, some_local_account.id, inbox_url) end @@ -36,7 +36,7 @@ class Relay < ApplicationRecord payload = Oj.dump(unfollow_activity(activity_id)) update!(state: :idle, follow_activity_id: nil) - DeliveryFailureTracker.track_success!(inbox_url) + DeliveryFailureTracker.reset!(inbox_url) ActivityPub::DeliveryWorker.perform_async(payload, some_local_account.id, inbox_url) end |