mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 22:26:26 +08:00
13 lines
270 B
Ruby
13 lines
270 B
Ruby
require_dependency 'inline_oneboxer'
|
|
|
|
class InlineOneboxController < ApplicationController
|
|
requires_login
|
|
|
|
def show
|
|
hijack do
|
|
oneboxes = InlineOneboxer.new(params[:urls] || []).process
|
|
render json: { "inline-oneboxes" => oneboxes }
|
|
end
|
|
end
|
|
end
|