From d981a31a1092066f560d828b05dd64c8026cab93 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Mon, 26 Dec 2022 23:44:18 +0800 Subject: [PATCH] Fix serious BUG v1 uses `uri`, v2 uses `domain` --- src/app.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.jsx b/src/app.jsx index c4838d1e..9e1d2c49 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -308,9 +308,9 @@ export function App() { (async () => { const info = await masto.v2.instance.fetch(); console.log(info); - const { uri } = info; + const { uri, domain } = info; const instances = store.local.getJSON('instances') || {}; - instances[uri] = info; + instances[domain || uri] = info; store.local.setJSON('instances', instances); })(); });