adding some debugging to the new reply retrieval
All checks were successful
/ weblog.lol (push) Successful in 8s
All checks were successful
/ weblog.lol (push) Successful in 8s
This commit is contained in:
parent
4b0bec8779
commit
62b8d3dad6
1 changed files with 3 additions and 0 deletions
|
@ -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 => {
|
||||
|
@ -159,6 +160,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')
|
||||
h1.innerText = "Replies"
|
||||
|
|
Loading…
Reference in a new issue