Finish mastodon login flow

This commit is contained in:
Bofh 2021-11-27 20:44:46 +01:00
parent 415becc496
commit 4f73dddc73
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ const http = {
const API = {
mastodon: {
registerInstance: function(instance) {
if (instance === null)
instance = document.getElementById('instanceURL').value;
http.get('/api/login/mastodon/get_client.php?instance='+encodeURIComponent(instance), {}, function(data)
{
data = JSON.parse(data);