diff --git a/src/script.js b/src/script.js index 8743184..b9b39db 100644 --- a/src/script.js +++ b/src/script.js @@ -1,3 +1,7 @@ +const instance = "chaos.social" +const account_id = "109116460625306131" + + const mastodonFeedCreateElement = function(type, className = null) { let element = document.createElement(type); if(null !== className) { @@ -298,7 +302,7 @@ const mastodonFeedLoad = function(url, elementId, options) { xhr.send(); } -apiUrl = 'https://social.queereszentrumtuebingen.de/api/v1/accounts/01JFERHG3QG06PQ7QGYEZ6288P/statuses'; +apiUrl = 'https://' + instance + '/api/v1/accounts/' + account_id + '/statuses'; window.addEventListener("load", () => { mastodonFeedLoad(