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

This commit is contained in:
Guo Xiang Tan 2019-06-11 14:48:24 +08:00
parent 9d0fba64c0
commit 36c0cfa890

View File

@ -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