Fix account backups failing on non-Document attachments (#39977)

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
EssemandClaire authored and GitHub committed 2026-07-29 17:27:37 +00:00
1 parent 428fccf04a
commit ae4f80ee57
1 file changed
+1 -1
+1 -1
View File
@@ -42,7 +42,7 @@ class BackupService < BaseService
unless item[:type] == 'Announce' || item[:object][:attachment].blank?
item[:object][:attachment].each do |attachment|
attachment[:url] = Addressable::URI.parse(attachment[:url]).path.delete_prefix('/system/')
attachment[:url] = Addressable::URI.parse(attachment[:url]).path.delete_prefix('/system/') if attachment[:url].present?
end
end