Finish mastodon login flow
This commit is contained in:
parent
415becc496
commit
4f73dddc73
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue