mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 08:48:47 +01:00
Bring back the instance
This commit is contained in:
parent
52c66182d1
commit
9fd2b05065
1 changed files with 3 additions and 3 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue