Fixed regression in config deprecation in social plugin

This commit is contained in:
squidfunk 2023-06-23 11:53:07 +02:00
parent a22f39b166
commit d8a0e36ce3
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
2 changed files with 4 additions and 4 deletions

View File

@ -87,7 +87,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]):
return return
# Move color options # Move color options
if "cards_color" in self.config: if self.config.cards_color:
# Move background color to new option # Move background color to new option
value = self.config.cards_color.get("fill") value = self.config.cards_color.get("fill")
@ -100,7 +100,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]):
self.config.cards_layout_options["color"] = value self.config.cards_layout_options["color"] = value
# Move font family to new option # Move font family to new option
if "cards_font" in self.config: if self.config.cards_font:
value = self.config.cards_font value = self.config.cards_font
self.config.cards_layout_options["font_family"] = value self.config.cards_layout_options["font_family"] = value

View File

@ -87,7 +87,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]):
return return
# Move color options # Move color options
if "cards_color" in self.config: if self.config.cards_color:
# Move background color to new option # Move background color to new option
value = self.config.cards_color.get("fill") value = self.config.cards_color.get("fill")
@ -100,7 +100,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]):
self.config.cards_layout_options["color"] = value self.config.cards_layout_options["color"] = value
# Move font family to new option # Move font family to new option
if "cards_font" in self.config: if self.config.cards_font:
value = self.config.cards_font value = self.config.cards_font
self.config.cards_layout_options["font_family"] = value self.config.cards_layout_options["font_family"] = value