mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 11:58:27 +00:00
ba238f92c2
This reverts commit 7ca57db97afda4d1c130269061f0db3cb9d0dd42, reversing changes made to b7e027cfd1590365ac9c85141ff2b02c25e900fb.
15 lines
265 B
Ruby
15 lines
265 B
Ruby
require_dependency 'oneboxer/oembed_onebox'
|
|
|
|
module Oneboxer
|
|
class DailymotionOnebox < OembedOnebox
|
|
|
|
matcher /dailymotion\.com\/.+$/
|
|
|
|
def oembed_endpoint
|
|
"http://www.dailymotion.com/api/oembed/?url=#{BaseOnebox.uriencode(@url)}"
|
|
end
|
|
|
|
|
|
end
|
|
end
|