From 07db8e2db4f5b84e81ab6f9d3eeaad4cb1079020 Mon Sep 17 00:00:00 2001 From: Jon <134811123+jonsmy@users.noreply.github.com> Date: Mon, 26 Feb 2024 21:11:44 +0000 Subject: [PATCH] thread_autoupdater.js: update tslp on ajax post --- js/lcn/thread_autoupdater.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/lcn/thread_autoupdater.js b/js/lcn/thread_autoupdater.js index 7e7b9dbe..569206d2 100644 --- a/js/lcn/thread_autoupdater.js +++ b/js/lcn/thread_autoupdater.js @@ -153,8 +153,10 @@ $().ready(() => { $(document).on("ajax_after_post", (_, xhr_body) => { if (kIsEnabled.getValue() && xhr_body != null) { + const thread = LCNThread.first() const dom = parser.parseFromString(xhr_body.thread, "text/html") - updateThreadFn(LCNThread.first(), dom) + updateThreadFn(thread, dom) + updateSecondsByTSLP(thread.getReplies().at(-1).getInfo()) } })