Prevent duplicate files in user data export

This commit is contained in:
Stanko K.R.
2026-02-02 19:58:53 +01:00
parent 4b7bbda222
commit 88d84b3eaa
+1 -1
View File
@@ -67,7 +67,7 @@ module Card::Exportable
end
def collect_attachments
attachments.to_a + comments.flat_map { |c| c.attachments.to_a }
(attachments.to_a + comments.flat_map { |c| c.attachments.to_a }).uniq(&:blob_id)
end
def export_status