Fix isServing check in site info formatting
This commit is contained in:
parent
f414f0746c
commit
698f0cc230
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue