discourse/lib/oneboxer/clikthrough_onebox.rb
Robin Ward ba238f92c2 Revert "Merge branch 'onebox-safety' of git://github.com/tms/discourse"
This reverts commit 7ca57db97afda4d1c130269061f0db3cb9d0dd42, reversing
changes made to b7e027cfd1590365ac9c85141ff2b02c25e900fb.
2013-02-19 14:22:13 -05:00

15 lines
282 B
Ruby

require_dependency 'oneboxer/oembed_onebox'
module Oneboxer
class ClikthroughOnebox < OembedOnebox
matcher /clikthrough\.com\/theater\/video\/\d+$/
def oembed_endpoint
"http://clikthrough.com/services/oembed?url=#{BaseOnebox.uriencode(@url)}"
end
end
end