mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 11:58:27 +00:00
This reverts commit 7ca57db97afda4d1c130269061f0db3cb9d0dd42, reversing changes made to b7e027cfd1590365ac9c85141ff2b02c25e900fb.
15 lines
282 B
Ruby
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
|