mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
Use v1 instance api
v2 is too new, only added for Mastodon v4
This commit is contained in:
parent
07163f0c3f
commit
5e52874aa5
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ function App() {
|
|||
|
||||
// Collect instance info
|
||||
(async () => {
|
||||
const info = await masto.v2.instance.fetch();
|
||||
const info = await masto.v1.instances.fetch();
|
||||
console.log(info);
|
||||
const { uri, domain } = info;
|
||||
const instances = store.local.getJSON('instances') || {};
|
||||
|
|
Loading…
Add table
Reference in a new issue