From 5e52874aa58896a188f93fdaf0d2e7a034fea688 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 1 Jan 2023 10:59:20 +0800 Subject: [PATCH] Use v1 instance api v2 is too new, only added for Mastodon v4 --- src/app.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.jsx b/src/app.jsx index f35657eb..08ea2832 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -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') || {};