diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-04-15 20:33:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 20:33:24 +0200 |
commit | 5edff32733eff2cbffbf614b31eea85da8dc3aaf (patch) | |
tree | b0ab38cbf8793f47017e2151de5dd32bdd83a29a /app/controllers/admin | |
parent | 5524258da9bc1d62b1396d19c672d3a8335ffbc5 (diff) |
Change delivery failure tracking to work with hostnames instead of URLs (#13437)
Diffstat (limited to 'app/controllers/admin')
-rw-r--r-- | app/controllers/admin/instances_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/instances_controller.rb b/app/controllers/admin/instances_controller.rb index 2fc041207..1790becbf 100644 --- a/app/controllers/admin/instances_controller.rb +++ b/app/controllers/admin/instances_controller.rb @@ -19,7 +19,7 @@ module Admin @followers_count = Follow.where(target_account: Account.where(domain: params[:id])).count @reports_count = Report.where(target_account: Account.where(domain: params[:id])).count @blocks_count = Block.where(target_account: Account.where(domain: params[:id])).count - @available = DeliveryFailureTracker.available?(Account.select(:shared_inbox_url).where(domain: params[:id]).first&.shared_inbox_url) + @available = DeliveryFailureTracker.available?(params[:id]) @media_storage = MediaAttachment.where(account: Account.where(domain: params[:id])).sum(:file_file_size) @private_comment = @domain_block&.private_comment @public_comment = @domain_block&.public_comment |