Skip to content

Commit

Permalink
Add signature to exported status (mastodon#12649)
Browse files Browse the repository at this point in the history
  • Loading branch information
noellabo authored and multiple creatures committed Apr 4, 2020
1 parent c246953 commit 26e82eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/services/backup_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
require 'rubygems/package'

class BackupService < BaseService
include Payloadable

attr_reader :account, :backup, :collection

def call(backup)
Expand All @@ -20,7 +22,7 @@ def build_json!

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?
Expand Down

0 comments on commit 26e82eb

Please sign in to comment.