From 92c3f32e130a5b99ca7c0137d497e5a448a7b2e4 Mon Sep 17 00:00:00 2001 From: Danila Kamaev Date: Sat, 15 Aug 2026 16:47:04 +0400 Subject: [PATCH] wopi: fix access_token_ttl (#1587) --- copyparty/httpcli.py | 2 +- copyparty/web/wopi.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 2a61b2c5..a81a9b87 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -1703,7 +1703,7 @@ class HttpCli(object): title=self.uparam["wopi"], url=url, atoken=atoken, - ttl=session["expires"], + ttl=int(session["expires"] * 1000), ).encode("utf-8", "replace") self.reply(html, 200, "text/html; charset=utf-8") diff --git a/copyparty/web/wopi.html b/copyparty/web/wopi.html index 80c8a849..423f80cb 100644 --- a/copyparty/web/wopi.html +++ b/copyparty/web/wopi.html @@ -27,7 +27,7 @@ body {
- +