about summary refs log tree commit diff
path: root/app/controllers/statuses_controller.rb
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-11-18 21:03:32 -0600
committerFire Demon <firedemon@creature.cafe>2020-11-18 21:03:32 -0600
commitcfe8a3218addfd7e0cc82c6f0054572f3d8aa296 (patch)
treeabe88187c10217321827913d2e21f6592659ea33 /app/controllers/statuses_controller.rb
parentb767423188034031bc6c89f5a39f78687506a5ce (diff)
Break up AP envelope addressing by domain
Diffstat (limited to 'app/controllers/statuses_controller.rb')
-rw-r--r--app/controllers/statuses_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/statuses_controller.rb b/app/controllers/statuses_controller.rb
index 6f8e74414..596ce9b84 100644
--- a/app/controllers/statuses_controller.rb
+++ b/app/controllers/statuses_controller.rb
@@ -39,18 +39,18 @@ class StatusesController < ApplicationController
 
       format.json do
         expires_in 3.minutes, public: @status.distributable? && public_fetch_mode?
-        render_with_cache json: @status, content_type: 'application/activity+json', serializer: ActivityPub::NoteSerializer, adapter: ActivityPub::Adapter, target_domain: current_account&.domain
+        render_with_cache json: @status, content_type: 'application/activity+json', serializer: ActivityPub::NoteSerializer, adapter: ActivityPub::Adapter, domain: current_account&.domain
       end
     end
   end
 
   def activity
     expires_in 3.minutes, public: @status.distributable? && public_fetch_mode?
-    render_with_cache json: ActivityPub::ActivityPresenter.from_status(@status),
+    render_with_cache json: ActivityPub::ActivityPresenter.from_status(@status, current_account&.domain),
                       content_type: 'application/activity+json',
                       serializer: ActivityPub::ActivitySerializer,
                       adapter: ActivityPub::Adapter,
-                      target_domain: current_account&.domain
+                      domain: current_account&.domain
   end
 
   def embed