mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Use existing image_html method
This commit is contained in:
parent
9c617d051e
commit
635ec38222
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue