- upLink.textContent = `See more ${ status.subject ? `“${status.subject}” posts` : "statuses" }.`
- container.replaceChildren(document.importNode(article, true), footer) })
+ upLink.textContent = `See more ${ status.subject ? `${status.subject}` : "status" } updates.`
+ if (title) {
+ const wrapper = document.createElement("article")
+ const details = wrapper.appendChild(document.createElement("details"))
+ details.setAttribute("open", "")
+ const summary = details.appendChild(document.createElement("summary"))
+ summary.textContent = title
+ details.append(...document.importNode(article, true).childNodes)
+ container.replaceChildren(wrapper, footer) }
+ else container.replaceChildren(document.importNode(article, true), footer) }