mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Add site setting for specific hosts using custom user agent when oneboxing
Followup to #00c406
This commit is contained in:
@@ -31,7 +31,7 @@ module Oneboxer
|
||||
end
|
||||
|
||||
def self.force_custom_user_agent_hosts
|
||||
@force_custom_user_agent_hosts ||= ['http://codepen.io']
|
||||
@force_custom_user_agent_hosts ||= SiteSetting.force_custom_user_agent_hosts.split('|')
|
||||
end
|
||||
|
||||
def self.allowed_post_types
|
||||
|
||||
Reference in New Issue
Block a user