diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-02-15 16:08:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-15 16:08:59 +0100 |
commit | 8ef50706a11e115e8b4aa31b30de93738bc7e754 (patch) | |
tree | 1c8a1ce3b3660e7c4e2e7fa631689aa87f676cb6 /app/models | |
parent | b01f26ffbd7cf1ca42a6a16798c1f10e56a8e82e (diff) |
Fix relay enabling/disabling not resetting inbox availability status (#10048)
Fix #10033
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/relay.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/relay.rb b/app/models/relay.rb index 7478c110d..6934a5c62 100644 --- a/app/models/relay.rb +++ b/app/models/relay.rb @@ -29,6 +29,7 @@ class Relay < ApplicationRecord payload = Oj.dump(follow_activity(activity_id)) update!(state: :pending, follow_activity_id: activity_id) + DeliveryFailureTracker.new(inbox_url).track_success! ActivityPub::DeliveryWorker.perform_async(payload, some_local_account.id, inbox_url) end @@ -37,6 +38,7 @@ class Relay < ApplicationRecord payload = Oj.dump(unfollow_activity(activity_id)) update!(state: :idle, follow_activity_id: nil) + DeliveryFailureTracker.new(inbox_url).track_success! ActivityPub::DeliveryWorker.perform_async(payload, some_local_account.id, inbox_url) end |