diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-07-16 15:07:20 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:41:03 -0500 |
commit | 78d33622a5b53a983e8d37777e8e56b9e3f3c29c (patch) | |
tree | 0e1b7f4f7fa521156ee5ea24bca79ccd5f6f7dca /app/services/process_mentions_service.rb | |
parent | a3a7c6e0ec6a80ea1989176f15224b1a27916338 (diff) |
[Privacy] Federate references to objects than embedding them so that their permissions can be enforced on request
Diffstat (limited to 'app/services/process_mentions_service.rb')
-rw-r--r-- | app/services/process_mentions_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |