mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 05:47:24 +08:00
Use existing image_html method
This commit is contained in:
parent
9c617d051e
commit
635ec38222
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user