Change delivery failure tracking to work with hostnames instead of URLs (#13437)
This commit is contained in:
parent
5524258da9
commit
5edff32733
15 changed files with 103 additions and 44 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue