diff --git a/plugins/lazy-yt/config/locales/server.en.yml b/plugins/lazy-yt/config/locales/server.en.yml new file mode 100644 index 00000000000..1ac0bee45f9 --- /dev/null +++ b/plugins/lazy-yt/config/locales/server.en.yml @@ -0,0 +1,3 @@ +en: + site_settings: + lazy_yt_enabled: "Enable the LazyYT plugin" diff --git a/plugins/lazy-yt/config/settings.yml b/plugins/lazy-yt/config/settings.yml new file mode 100644 index 00000000000..cca346d5df1 --- /dev/null +++ b/plugins/lazy-yt/config/settings.yml @@ -0,0 +1,5 @@ +plugins: + lazy_yt_enabled: + default: true + client: false + hidden: true diff --git a/plugins/lazy-yt/plugin.rb b/plugins/lazy-yt/plugin.rb index ae2995065ef..db570948463 100644 --- a/plugins/lazy-yt/plugin.rb +++ b/plugins/lazy-yt/plugin.rb @@ -7,6 +7,7 @@ # url: https://github.com/discourse/discourse/tree/main/plugins/lazy-yt hide_plugin if self.respond_to?(:hide_plugin) +enabled_site_setting :lazy_yt_enabled require "onebox"