From d0d2f206a9c0917eabd3f468fe7f0f7ec40121cd Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 1 Aug 2025 17:49:23 +0000 Subject: [PATCH] log creator of new/blank markdown files too --- copyparty/httpcli.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 16f94a11..5ce45a38 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -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