about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-07-05 21:34:03 +0200
committerThibG <thib@sitedethib.com>2019-07-05 21:50:19 +0200
commite5f4d83e60305e2f502f18f507ad79d8fbccfe77 (patch)
treee607d26ecfcd336e3e5f440cc8ab594d07d40725 /app/services
parentc94966891af1ff456c6382595c07c2d68c57ec49 (diff)
Allow serializing local-only toots in backup service
Fixes #1153
Diffstat (limited to 'app/services')
-rw-r--r--app/services/backup_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/backup_service.rb b/app/services/backup_service.rb
index 5fcc98057..bd9e77223 100644
--- a/app/services/backup_service.rb
+++ b/app/services/backup_service.rb
@@ -149,7 +149,8 @@ class BackupService < BaseService
     ActiveModelSerializers::SerializableResource.new(
       object,
       serializer: serializer,
-      adapter: ActivityPub::Adapter
+      adapter: ActivityPub::Adapter,
+      allow_local_only: true,
     ).as_json
   end