shares: fix md-viewer

This commit is contained in:
ed 2026-07-16 20:32:35 +00:00
parent 5952401815
commit 6a9437b77c
2 changed files with 3 additions and 0 deletions

View file

@ -3244,6 +3244,7 @@ class AuthSrv(object):
self.js_ls = {}
self.js_htm = ""
self.md_htm = ""
for vp, vn in self.vfs.all_nodes.items():
if enshare and vp.startswith(shrs):
continue # propagates later in this func
@ -3360,6 +3361,7 @@ class AuthSrv(object):
dbv = vol.get_dbv("")[0]
vol.js_ls = vol.js_ls or dbv.js_ls or {}
vol.js_htm = vol.js_htm or dbv.js_htm or "{}"
vol.md_htm = vol.md_htm or dbv.md_htm or "{}"
zs = str(vol.flags.get("tcolor") or self.args.tcolor)
vol.flags["tcolor"] = zs.lstrip("#")

View file

@ -263,3 +263,4 @@ def ramdisk_chk(asrv: AuthSrv) -> None:
htm = json.loads(vol.js_htm)
vol.flags["fsnt"] = vol.js_ls["fsnt"] = htm["fsnt"] = fs
vol.js_htm = json_hesc(json.dumps(htm))
# md_htm is dontcare; only relevant for up2k request body