Use Account.activitypub generated scope (#28157)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2024-03-14 13:19:20 +00:00
1 parent 049d9171eb
commit 14aa7f1e15
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -442,7 +442,7 @@ class Account < ApplicationRecord
end
def inboxes
urls = reorder(nil).where(protocol: :activitypub).group(:preferred_inbox_url).pluck(Arel.sql("coalesce(nullif(accounts.shared_inbox_url, ''), accounts.inbox_url) AS preferred_inbox_url"))
urls = reorder(nil).activitypub.group(:preferred_inbox_url).pluck(Arel.sql("coalesce(nullif(accounts.shared_inbox_url, ''), accounts.inbox_url) AS preferred_inbox_url"))
DeliveryFailureTracker.without_unavailable(urls)
end