diff --git a/plugins/Sidebar/SidebarPlugin.py b/plugins/Sidebar/SidebarPlugin.py index b3823046..987751e6 100644 --- a/plugins/Sidebar/SidebarPlugin.py +++ b/plugins/Sidebar/SidebarPlugin.py @@ -425,33 +425,26 @@ class UiWebsocketPlugin(object): """)) - donate_key = site.content_manager.contents.get("content.json", {}).get("donate", True) site_address = self.site.address body.append(_("""

  • {site_address} - """)) - if donate_key == False or donate_key == "": - pass - elif (type(donate_key) == str or type(donate_key) == str) and len(donate_key) > 0: - body.append(_("""
  • + """)) + donate_key = site.content_manager.contents.get("content.json", {}).get("donate", None) + if type(donate_key) is str and len(donate_key) > 0: + body.append(_("""

  • - {donate_key} - """)) - else: - body.append(_(""" - {_[Donate]} - """)) - body.append(_(""" + {donate_key} + {_[Donate]}
  • - """)) + """)) def sidebarRenderOwnedCheckbox(self, body, site): if self.site.settings["own"]: