From d9fc1e4aa030bb6140e3b994195a74c0a9716a6a Mon Sep 17 00:00:00 2001 From: CatAClock Date: Sun, 1 Jun 2025 15:05:02 -0700 Subject: [PATCH] bug fix --- JS/expanded.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/JS/expanded.js b/JS/expanded.js index 7f4bbff..ff4559a 100644 --- a/JS/expanded.js +++ b/JS/expanded.js @@ -105,10 +105,10 @@ async function GetPost() { } // Now time to see if there are any parents if (post.in_reply_to_id != null) { - let ParentPost = await MastodonReplylFunction("Parent", post.in_reply_to_id); + Parentpost = await MastodonReplylFunction("Parent", post.in_reply_to_id); // Now time to see if there are any grandparents - if (ParentPost == undefined && ParentPost.in_reply_to_id != null) { - MastodonReplylFunction("GrandParent", ParentPost.in_reply_to_id); + if (Parentpost != undefined && Parentpost.in_reply_to_id != null) { + GrandParentpost = await MastodonReplylFunction("GrandParent", Parentpost.in_reply_to_id); } } } else if (website == "Bluesky") {