Fixed disabling of social cards
This commit is contained in:
parent
6c796c06ec
commit
a7dc57c239
|
|
@ -82,7 +82,8 @@ class SocialPlugin(BasePlugin[SocialConfig]):
|
||||||
# Retrieve configuration
|
# Retrieve configuration
|
||||||
def on_config(self, config):
|
def on_config(self, config):
|
||||||
self.color = colors.get("indigo")
|
self.color = colors.get("indigo")
|
||||||
self.config.cards = self.config.enabled
|
if not self.config.enabled:
|
||||||
|
self.config.cards = False
|
||||||
if not self.config.cards:
|
if not self.config.cards:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,8 @@ class SocialPlugin(BasePlugin[SocialConfig]):
|
||||||
# Retrieve configuration
|
# Retrieve configuration
|
||||||
def on_config(self, config):
|
def on_config(self, config):
|
||||||
self.color = colors.get("indigo")
|
self.color = colors.get("indigo")
|
||||||
self.config.cards = self.config.enabled
|
if not self.config.enabled:
|
||||||
|
self.config.cards = False
|
||||||
if not self.config.cards:
|
if not self.config.cards:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue