From 78d33622a5b53a983e8d37777e8e56b9e3f3c29c Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Thu, 16 Jul 2020 15:07:20 -0500 Subject: [Privacy] Federate references to objects than embedding them so that their permissions can be enforced on request --- app/services/process_mentions_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services/process_mentions_service.rb') diff --git a/app/services/process_mentions_service.rb b/app/services/process_mentions_service.rb index f3ce81ef1..2cc376a75 100644 --- a/app/services/process_mentions_service.rb +++ b/app/services/process_mentions_service.rb @@ -35,7 +35,7 @@ class ProcessMentionsService < BaseService def activitypub_json return @activitypub_json if defined?(@activitypub_json) - @activitypub_json = Oj.dump(serialize_payload(ActivityPub::ActivityPresenter.from_status(@status), ActivityPub::ActivitySerializer, signer: @status.account)) + @activitypub_json = Oj.dump(serialize_payload(ActivityPub::ActivityPresenter.from_status(@status, embed: false), ActivityPub::ActivitySerializer, signer: @status.account)) end def check_for_spam(status) -- cgit