mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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…
Reference in New Issue
Block a user