diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-02-15 18:02:45 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-02-15 18:02:45 +0100 |
commit | 06cc04fd239896d294210b8bbaadb7c611aaffe5 (patch) | |
tree | 1868711bbe9ee79b25ff10a585457cfa0f9ac121 /app/models | |
parent | 2769b5446681898e8332cb505f499dac2a6e5717 (diff) | |
parent | 8ef50706a11e115e8b4aa31b30de93738bc7e754 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
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 |