Fix account backups failing on non-Document attachments (#39977)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
428fccf04a
commit
ae4f80ee57
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user