Fix hashtag url not working

This commit is contained in:
Lim Chee Aun 2023-04-09 00:43:27 +08:00
parent 82d88dbe10
commit 7edf63d41b

View file

@ -186,7 +186,8 @@ export const SHORTCUTS_META = {
id: 'hashtag',
title: ({ hashtag }) => hashtag,
subtitle: ({ instance }) => instance,
path: ({ hashtag }) => `/t/${hashtag.split(/\s+/).join('+')}`,
path: ({ hashtag, instance }) =>
`${instance ? `/${instance}` : ''}/t/${hashtag.split(/\s+/).join('+')}`,
icon: 'hashtag',
},
};