0
0
Fork 0

Change delivery failure tracking to work with hostnames instead of URLs (#13437)

This commit is contained in:
Eugen Rochko 2020-04-15 20:33:24 +02:00 committed by GitHub
parent 5524258da9
commit 5edff32733
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 103 additions and 44 deletions

View file

@ -413,7 +413,7 @@ class Account < ApplicationRecord
def inboxes
urls = reorder(nil).where(protocol: :activitypub).pluck(Arel.sql("distinct coalesce(nullif(accounts.shared_inbox_url, ''), accounts.inbox_url)"))
DeliveryFailureTracker.filter(urls)
DeliveryFailureTracker.without_unavailable(urls)
end
def search_for(terms, limit = 10, offset = 0)