From 7bbd151a985995d4f6c8ed1a3ac09446c5e91dec Mon Sep 17 00:00:00 2001 From: Gordon Pedersen Date: Thu, 23 May 2024 17:17:25 +1000 Subject: [PATCH] turns out, I forgot the template in the template --- configuration/template.html | 32 ++++++++++++++++++++++++++ weblog/B0. Template/js/fediverse.js.md | 5 ---- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/configuration/template.html b/configuration/template.html index 6c71b83..aef1360 100644 --- a/configuration/template.html +++ b/configuration/template.html @@ -33,8 +33,40 @@ +
+ +
+

Recent posts

diff --git a/weblog/B0. Template/js/fediverse.js.md b/weblog/B0. Template/js/fediverse.js.md index 863efc4..7335f0f 100644 --- a/weblog/B0. Template/js/fediverse.js.md +++ b/weblog/B0. Template/js/fediverse.js.md @@ -120,7 +120,6 @@ 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 => { @@ -152,17 +151,13 @@ 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')