]> cat aescling's git repositories - mastodon.git/commitdiff
Fix backup service when user has posted instance-local toots, again
authorThibaut Girka <thib@sitedethib.com>
Thu, 21 May 2020 17:27:16 +0000 (19:27 +0200)
committerThibG <thib@sitedethib.com>
Thu, 21 May 2020 18:05:46 +0000 (20:05 +0200)
app/services/backup_service.rb

index 691d024e14e4faf6286a48ef39874f8b3587e6f5..989fd6784d6722e785403ad42f1b200b31f4b9c2 100644 (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?