DEV: Add hidden option to disable the lazy-yt plugin (#19448)

This commit is contained in:
Jan Cernik 2022-12-14 11:52:17 -03:00 committed by GitHub
parent 6f9843803d
commit bbfc300345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,3 @@
en:
site_settings:
lazy_yt_enabled: "Enable the LazyYT plugin"

View File

@ -0,0 +1,5 @@
plugins:
lazy_yt_enabled:
default: true
client: false
hidden: true

View File

@ -7,6 +7,7 @@
# url: https://github.com/discourse/discourse/tree/main/plugins/lazy-yt # url: https://github.com/discourse/discourse/tree/main/plugins/lazy-yt
hide_plugin if self.respond_to?(:hide_plugin) hide_plugin if self.respond_to?(:hide_plugin)
enabled_site_setting :lazy_yt_enabled
require "onebox" require "onebox"