Fixed disabling of social cards
This commit is contained in:
parent
6c796c06ec
commit
a7dc57c239
|
|
@ -82,7 +82,8 @@ class SocialPlugin(BasePlugin[SocialConfig]):
|
|||
# Retrieve configuration
|
||||
def on_config(self, config):
|
||||
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:
|
||||
return
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,8 @@ class SocialPlugin(BasePlugin[SocialConfig]):
|
|||
# Retrieve configuration
|
||||
def on_config(self, config):
|
||||
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:
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue