about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorTakeshi Umeda <noel.yoshiba@gmail.com>2019-12-19 00:55:21 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-12-18 16:55:21 +0100
commit68070e82ccadfef4f101653cf8456f15148c58b7 (patch)
tree3537c9e02af8bd1d856cf7fc56b72b3689dccfa7 /app/services
parent8a347f4937b26ba6cb71eb2585c0f446640176ca (diff)
Add signature to exported status (#12649)
Diffstat (limited to 'app/services')
-rw-r--r--app/services/backup_service.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/backup_service.rb b/app/services/backup_service.rb
index fe26d7aa0..fba2d19a0 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?