FEATURE: Add site setting for specific hosts using custom user agent when oneboxing

Followup to #00c406
This commit is contained in:
Penar Musaraj
2020-02-06 10:32:42 -05:00
parent 2a884e25be
commit f029e2eaf6
4 changed files with 26 additions and 9 deletions

View File

@@ -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