Fix isServing check in site info formatting

This commit is contained in:
shortcutme 2019-04-15 15:49:04 +02:00
parent f414f0746c
commit 698f0cc230
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -317,7 +317,7 @@ class UiWebsocket(object):
}
if site.settings["own"]:
ret["privatekey"] = bool(self.user.getSiteData(site.address, create=create_user).get("privatekey"))
if site.settings["serving"] and content:
if site.isServing() and content:
ret["peers"] += 1 # Add myself if serving
return ret