This commit is contained in:
Valeria Fadeeva 2023-12-15 21:54:51 +05:00
parent eda77108d6
commit 6d83575668
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
let query = window.location.pathname; let query = window.location.pathname;
if(query == "/mastodon") { if (query == "/news") {
let tplUrl = 'json/mastodon-tpl.html'; let tplUrl = 'json/mastodon-tpl.html';
let response = await fetch(tplUrl); let response = await fetch(tplUrl);
var tpl = ""; var tpl = "";
@ -35,9 +35,9 @@ if(query == "/mastodon") {
var server_address = `techhub.social`; var server_address = `techhub.social`;
const response = await fetch('json/posts.json'); // const response = await fetch('json/posts.json');
// const response = await fetch(`https://${server_address}/api/v1/accounts/111518136987654656/statuses`); const response = await fetch(`https://${server_address}/api/v1/accounts/111518136987654656/statuses`);
const data = await response.json(); const data = await response.json();

View File

@ -182,4 +182,5 @@
</div> </div>
</div> </div>
</div> <div id="log"></div>
</div><!-- /.container -->