diff --git a/plugins/Sidebar/SidebarPlugin.py b/plugins/Sidebar/SidebarPlugin.py
index b3823046..72bff1eb 100644
--- a/plugins/Sidebar/SidebarPlugin.py
+++ b/plugins/Sidebar/SidebarPlugin.py
@@ -425,7 +425,6 @@ class UiWebsocketPlugin(object):
"""))
- donate_key = site.content_manager.contents.get("content.json", {}).get("donate", True)
site_address = self.site.address
body.append(_("""
@@ -433,9 +432,8 @@ class UiWebsocketPlugin(object):
{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:
+ 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(_("""
@@ -444,14 +442,6 @@ class UiWebsocketPlugin(object):
{donate_key}
"""))
- else:
- body.append(_("""
-
{_[Donate]}
- """))
- body.append(_("""
-
-
- """))
def sidebarRenderOwnedCheckbox(self, body, site):
if self.site.settings["own"]: