Skip to content

Commit a7dc57c

Browse files
committed
Fixed disabling of social cards
1 parent 6c796c0 commit a7dc57c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

material/plugins/social/plugin.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ def __init__(self):
8282
# Retrieve configuration
8383
def on_config(self, config):
8484
self.color = colors.get("indigo")
85-
self.config.cards = self.config.enabled
85+
if not self.config.enabled:
86+
self.config.cards = False
8687
if not self.config.cards:
8788
return
8889

src/plugins/social/plugin.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ def __init__(self):
8282
# Retrieve configuration
8383
def on_config(self, config):
8484
self.color = colors.get("indigo")
85-
self.config.cards = self.config.enabled
85+
if not self.config.enabled:
86+
self.config.cards = False
8687
if not self.config.cards:
8788
return
8889

0 commit comments

Comments
 (0)