FIX: Use new attachment markdown format in `ImportScripts::Uploader`.

FIX: Use new attachment markdown format in ImportScripts::Uploader.

diff --git a/script/import_scripts/base/uploader.rb b/script/import_scripts/base/uploader.rb
index 50961f6..0d8acac 100644
--- a/script/import_scripts/base/uploader.rb
+++ b/script/import_scripts/base/uploader.rb
@@ -57,7 +57,7 @@ module ImportScripts
     end
 
     def attachment_html(upload, display_filename)
-      "<a class='attachment' href='#{upload.url}'>#{display_filename}</a> (#{number_to_human_size(upload.filesize)})"
+      "[#{display_filename}|attachment](#{upload.short}) (#{number_to_human_size(upload.filesize)})"
     end
 
     private

GitHub sha: 36c0cfa8

2 Likes