mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 06:58:03 +08:00
Added Findery and Zappos entries to the Oneboxer::Whitelist.
Both Findery and Zappos support OpenGraph and work with the OpenGraphOneboxer. Added a comment at the top of whitelist.rb asking developers to check for OpenGraph support prior to creating a custom Onebox.
This commit is contained in:
parent
c4904aacc0
commit
cbf3845e99
@ -1,8 +1,19 @@
|
||||
module Oneboxer
|
||||
#******************************************************************************#
|
||||
# #
|
||||
# Oneboxer already supports most sites using OpenGraph via the OpenGraphOnebox #
|
||||
# class. If the site you want to create a onebox for supports OpenGraph, #
|
||||
# please try adding the site to the whitelist below before creating a custom #
|
||||
# parser or template. #
|
||||
# #
|
||||
#******************************************************************************#
|
||||
|
||||
module Oneboxer
|
||||
|
||||
module Whitelist
|
||||
def self.entries
|
||||
[
|
||||
Entry.new(/^https?:\/\/(?:www\.)?findery\.com\/.+/),
|
||||
Entry.new(/^https?:\/\/(?:www\.)?zappos\.com\/.+/),
|
||||
Entry.new(/^https?:\/\/(?:www\.)?slideshare\.net\/.+/),
|
||||
Entry.new(/^https?:\/\/(?:www\.)?rottentomatoes\.com\/.+/),
|
||||
Entry.new(/^https?:\/\/(?:www\.)?cnn\.com\/.+/),
|
||||
|
Loading…
x
Reference in New Issue
Block a user