diff --git a/weblog/B0. Template/js/fediverse.js.md b/weblog/B0. Template/js/fediverse.js.md index 7335f0f..863efc4 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 => { @@ -151,13 +152,17 @@ function renderReplies(status, replies, replyContainer, template) { } async function loadContext(status, replyContainer, template) { + console.log('Loading context'); try{ const res = await fetch(`https://monrepos.casa/api/v1/statuses/${status.id}/context`, { headers: { 'Authorization': 'Basic Ym90OjJuUmZhTGJ1c3cyaFhA' } }) + console.log(res) const json = await res.json() + + console.log(json) if(json && json.descendants && json.descendants.length > 0){ const h1 = document.createElement('h1')