about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-06-26 19:32:36 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-06-26 19:32:36 +0200
commit915c619394165a114a4ab316165aecac3386cf2f (patch)
tree56ee4eb360be9b4ac1a89f7223363f67ec46d3e8 /app/services
parent32a44949265e9f0d64b5f94597631385ca17b414 (diff)
Add support for Audio activities (#11189)
Fixes #11127
Diffstat (limited to 'app/services')
-rw-r--r--app/services/resolve_url_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/resolve_url_service.rb b/app/services/resolve_url_service.rb
index b98759bf6..bbdc0a595 100644
--- a/app/services/resolve_url_service.rb
+++ b/app/services/resolve_url_service.rb
@@ -18,9 +18,9 @@ class ResolveURLService < BaseService
   private
 
   def process_url
-    if equals_or_includes_any?(type, %w(Application Group Organization Person Service))
+    if equals_or_includes_any?(type, ActivityPub::FetchRemoteAccountService::SUPPORTED_TYPES)
       FetchRemoteAccountService.new.call(atom_url, body, protocol)
-    elsif equals_or_includes_any?(type, %w(Note Article Image Video Page Question))
+    elsif equals_or_includes_any?(type, ActivityPub::Activity::Create::SUPPORTED_TYPES + ActivityPub::Activity::Create::CONVERTED_TYPES)
       FetchRemoteStatusService.new.call(atom_url, body, protocol)
     end
   end