discourse/lib/onebox/engine/json.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
212 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Onebox
module Engine
module JSON
private
def raw
2021-10-27 04:39:28 -04:00
@raw ||= ::MultiJson.load(URI.parse(url).open(read_timeout: timeout))
end
end
end
end