From b07c1e615b3f536b81eca5884ce7ee022c113238 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Thu, 21 May 2020 19:27:16 +0200 Subject: [PATCH] Fix backup service when user has posted instance-local toots, again --- app/services/backup_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/backup_service.rb b/app/services/backup_service.rb index 691d024e14e..989fd6784d6 100644 --- a/app/services/backup_service.rb +++ b/app/services/backup_service.rb @@ -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?