From 62b8d3dad6622a469c7c8e203b878e1180612e89 Mon Sep 17 00:00:00 2001 From: Gordon Pedersen Date: Thu, 23 May 2024 17:12:07 +1000 Subject: [PATCH] adding some debugging to the new reply retrieval --- weblog/B0. Template/js/fediverse.js.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weblog/B0. Template/js/fediverse.js.md b/weblog/B0. Template/js/fediverse.js.md index 7335f0f..2bd3d11 100644 --- a/weblog/B0. Template/js/fediverse.js.md +++ b/weblog/B0. Template/js/fediverse.js.md @@ -120,6 +120,7 @@ class FediSocial extends HTMLElement { customElements.define('fedi-social', FediSocial) function renderReplies(status, replies, replyContainer, template) { + console.log(status) const repliesToThis = replies.filter(d => d.in_reply_to_id == status.id); repliesToThis.forEach(reply => { @@ -158,6 +159,8 @@ async function loadContext(status, replyContainer, template) { } }) const json = await res.json() + + console.log(json) if(json && json.descendants && json.descendants.length > 0){ const h1 = document.createElement('h1')