From 9fd2b05065996574dc540758f7482f717696331d Mon Sep 17 00:00:00 2001
From: Lim Chee Aun <cheeaun@gmail.com>
Date: Mon, 17 Apr 2023 17:38:53 +0800
Subject: [PATCH] Bring back the instance

---
 src/components/shortcuts-settings.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/components/shortcuts-settings.jsx b/src/components/shortcuts-settings.jsx
index b5074ca8..13d7c6f9 100644
--- a/src/components/shortcuts-settings.jsx
+++ b/src/components/shortcuts-settings.jsx
@@ -141,14 +141,14 @@ export const SHORTCUTS_META = {
   public: {
     id: 'public',
     title: ({ local }) => (local ? 'Local' : 'Federated'),
-    subtitle: ({ instance }) => instance,
+    subtitle: ({ instance }) => instance || api().instance,
     path: ({ local, instance }) => `/${instance}/p${local ? '/l' : ''}`,
     icon: ({ local }) => (local ? 'group' : 'earth'),
   },
   trending: {
     id: 'trending',
     title: 'Trending',
-    subtitle: ({ instance }) => instance,
+    subtitle: ({ instance }) => instance || api().instance,
     path: ({ instance }) => `/${instance}/trending`,
     icon: 'chart',
   },
@@ -187,7 +187,7 @@ export const SHORTCUTS_META = {
   hashtag: {
     id: 'hashtag',
     title: ({ hashtag }) => hashtag,
-    subtitle: ({ instance }) => instance,
+    subtitle: ({ instance }) => instance || api().instance,
     path: ({ hashtag, instance }) =>
       `${instance ? `/${instance}` : ''}/t/${hashtag.split(/\s+/).join('+')}`,
     icon: 'hashtag',