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
275 B
Ruby
15 lines
275 B
Ruby
require_dependency 'oneboxer/oembed_onebox'
|
|
|
|
module Oneboxer
|
|
class NfbOnebox < OembedOnebox
|
|
|
|
matcher /nfb\.ca\/film\/[-\w]+\/?/
|
|
|
|
def oembed_endpoint
|
|
"http://www.nfb.ca/remote/services/oembed/?url=#{BaseOnebox.uriencode(@url)}&format=json"
|
|
end
|
|
|
|
|
|
end
|
|
end
|