diff options
author | Takeshi Umeda <noel.yoshiba@gmail.com> | 2019-12-19 00:55:21 +0900 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-04-04 12:23:33 -0500 |
commit | 26e82ebc5453f5c61674cecbc26005bb43d80ae3 (patch) | |
tree | 53934795d62c77ccd935d46835868ccb8bc2c472 /app/services | |
parent | c2469539f51c8faf09d7ba020ca2065513fd96cb (diff) |
Add signature to exported status (#12649)
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/backup_service.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/backup_service.rb b/app/services/backup_service.rb index cc9fb1f4e..0b57b6d0c 100644 --- a/app/services/backup_service.rb +++ b/app/services/backup_service.rb @@ -3,6 +3,8 @@ require 'rubygems/package' class BackupService < BaseService + include Payloadable + attr_reader :account, :backup, :collection def call(backup) @@ -20,7 +22,7 @@ class BackupService < BaseService account.statuses.with_includes.reorder(nil).find_in_batches do |statuses| statuses.each do |status| - item = serialize(status, ActivityPub::ActivitySerializer) + item = serialize_payload(status, ActivityPub::ActivitySerializer, signer: @account) item.delete(:'@context') unless item[:type] == 'Announce' || item[:object][:attachment].blank? |