mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-24 05:42:03 -04:00
Merge pull request #1112 from jamesaanderson/use-existing-method
Use existing image_html method
This commit is contained in:
commit
8fa3eaea13
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ module Oneboxer
|
||||||
matcher /^https?:\/\/.*\.(jpg|png|gif|jpeg)$/
|
matcher /^https?:\/\/.*\.(jpg|png|gif|jpeg)$/
|
||||||
|
|
||||||
def onebox
|
def onebox
|
||||||
"<a href='#{@url}' target='_blank'><img src='#{@url}'></a>"
|
Oneboxer::BaseOnebox.image_html(@url, nil, @url)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue