From 4bb7c3ef0fb8c516a96f89b049a1bae89fef8e59 Mon Sep 17 00:00:00 2001 From: Jon <134811123+jonsmy@users.noreply.github.com> Date: Tue, 20 Feb 2024 18:50:13 +0000 Subject: [PATCH] js/lcn/classes.js: add LCNThread.getReplies --- js/lcn/classes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/lcn/classes.js b/js/lcn/classes.js index eb29a0df..37bc260f 100644 --- a/js/lcn/classes.js +++ b/js/lcn/classes.js @@ -179,6 +179,7 @@ globalThis.LCNThread = class LCNThread { "getThread" () { return this.#thread; } "getOP" () { return this.#op; } "getPosts" () { return Array.prototype.map.apply(this.#thread.querySelectorAll(".post"), [ el => LCNPost.assign(el) ]); } + "getReplies" () { return Array.prototype.map.apply(this.#thread.querySelectorAll(".post:not(.op)"), [ el => LCNPost.assign(el) ]); } "getParent" () { return this.#parent; } "__setParent" (inst) { return this.#parent = inst; }