log creator of new/blank markdown files too

This commit is contained in:
ed 2025-08-01 17:49:23 +00:00
parent 7ecedb2ce2
commit d0d2f206a9

View file

@ -3109,6 +3109,20 @@ class HttpCli(object):
if "fperms" in vfs.flags:
set_fperms(f, vfs.flags)
dbv, vrem = vfs.get_dbv(rem)
self.conn.hsrv.broker.say(
"up2k.hash_file",
dbv.realpath,
dbv.vpath,
dbv.flags,
vrem,
sanitized,
self.ip,
bos.stat(fn).st_mtime,
self.uname,
True,
)
vpath = "{}/{}".format(self.vpath, sanitized).lstrip("/")
self.redirect(vpath, "?edit")
return True