2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-11 21:04:42 +08:00

Use existing image_html method

This commit is contained in:
James A. Anderson & Jalil Mohammed 2013-06-29 11:17:25 -07:00 committed by James Anderson
parent 9c617d051e
commit 635ec38222

View file

@ -6,7 +6,7 @@ module Oneboxer
matcher /^https?:\/\/.*\.(jpg|png|gif|jpeg)$/

def onebox
"<a href='#{@url}' target='_blank'><img src='#{@url}'></a>"
Oneboxer::BaseOnebox.image_html(@url, nil, @url)
end

end