mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 08:23:37 +08:00
13 lines
280 B
Ruby
13 lines
280 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Onebox
|
|
module Engine
|
|
module OpengraphImage
|
|
def to_html
|
|
og = get_opengraph
|
|
"<img src='#{og.image}' width='#{og.image_width}' height='#{og.image_height}' class='onebox' #{og.title_attr}>"
|
|
end
|
|
end
|
|
end
|
|
end
|