Add Attachment Video1

This commit is contained in:
sylor_huang@126.com 2020-09-24 15:33:30 +08:00
parent e698efb14f
commit 09d382ab8f
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ json.title attachment.title
json.filesize number_to_human_size attachment.filesize
json.description attachment.description
json.is_pdf attachment.is_pdf?
json.absolute_path absolute_path(local_path(attachment))
json.absolute_path "https://forgeplus.trustie.net/#{absolute_path(local_path(attachment))}"
json.url attachment.is_pdf? ? download_url(attachment,disposition:"inline") : download_url(attachment)
# json.url download_url(attachment)
json.set! :delete, delete.nil? ? true : delete if defined? delete