about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-04-04 13:37:07 -0500
committermultiple creatures <dev@multiple-creature.party>2020-04-04 13:37:07 -0500
commit1a7570882a4cd465f30404a9e47c45f8c1618274 (patch)
tree516c7e61a7f34d2ed283a03db8e21f85124ab77d /app/services
parenteed9dd2ad94b2d46484270d47bb7b59292d37355 (diff)
fix local only posts causing backups to crash
Diffstat (limited to 'app/services')
-rw-r--r--app/services/backup_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/backup_service.rb b/app/services/backup_service.rb
index 691d024e1..989fd6784 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?