Fix backup service when user has posted instance-local toots, again

lolsob-rspec
Thibaut Girka 2020-05-21 19:27:16 +02:00 committed by ThibG
parent 3329f6ca73
commit b4396fb459
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class BackupService < BaseService
account.statuses.with_includes.reorder(nil).find_in_batches do |statuses|
statuses.each do |status|
item = serialize_payload(status, ActivityPub::ActivitySerializer, signer: @account)
item = serialize_payload(status, ActivityPub::ActivitySerializer, signer: @account, allow_local_only: true)
item.delete(:'@context')
unless item[:type] == 'Announce' || item[:object][:attachment].blank?