Browse Source

Add signature to exported status (#12649)

closed-social-v3
Takeshi Umeda 4 years ago
committed by Eugen Rochko
parent
commit
68070e82cc
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/services/backup_service.rb

+ 3
- 1
app/services/backup_service.rb View File

@ -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?

Loading…
Cancel
Save