Browse Source

gts comments tweak

master
Jon Kelbie 5 months ago
parent
commit
0118d58eb3
  1. 8
      layouts/partials/mastodon/mastodon.html

8
layouts/partials/mastodon/mastodon.html

@ -57,7 +57,13 @@
document.getElementById("load-comment").addEventListener("click", function() {
document.getElementById("load-comment").innerHTML = "Loading";
fetch('http://localhost:85/api/v1/statuses/{{ .Page.Params.comments.id }}/context')
const params = {
method: 'GET',
headers: {
'accept': 'application/json'
}
};
fetch('http://localhost:85/api/v1/statuses/{{ .Page.Params.comments.id }}/context',params)
.then(function(response) {
return response.json();
})

Loading…
Cancel
Save