mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 21:26:15 +08:00
FIX: overwrite onebox's whitelist
This commit is contained in:
parent
bd352385a5
commit
70b79328ab
17
lib/onebox/engine/whitelisted_generic_onebox.rb
Normal file
17
lib/onebox/engine/whitelisted_generic_onebox.rb
Normal file
@ -0,0 +1,17 @@
|
||||
module Onebox
|
||||
module Engine
|
||||
class WhitelistedGenericOnebox
|
||||
|
||||
# overwrite the whitelist
|
||||
def self.===(other)
|
||||
true
|
||||
end
|
||||
|
||||
# ensure we're the last engine to be used
|
||||
def self.priority
|
||||
Float::INFINITY
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user