mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
Rename FileHelper.is_image?
-> FileHelper.is_supported_image?
.
This commit is contained in:
parent
d59e635a77
commit
e1b16e445e
11 changed files with 16 additions and 16 deletions
|
@ -40,7 +40,7 @@ module ImportScripts
|
|||
end
|
||||
|
||||
def html_for_upload(upload, display_filename)
|
||||
if FileHelper.is_image?(upload.url)
|
||||
if FileHelper.is_supported_image?(upload.url)
|
||||
embedded_image_html(upload)
|
||||
else
|
||||
attachment_html(upload, display_filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue