separation

This commit is contained in:
Henry Jameson 2026-01-29 15:11:47 +02:00
commit 573a980512
12 changed files with 56 additions and 31 deletions

View file

@ -183,7 +183,7 @@ const getTOS = async ({ store }) => {
const res = await window.fetch('/static/terms-of-service.html')
if (res.ok) {
const html = await res.text()
useInstanceStore().set({ name: 'tos', value: html })
useInstanceStore().set({ name: 'instanceIdentity.tos', value: html })
} else {
throw res
}
@ -198,7 +198,7 @@ const getInstancePanel = async ({ store }) => {
if (res.ok) {
const html = await res.text()
useInstanceStore().set({
name: 'instanceSpecificPanelContent',
name: 'instanceIdentity.instanceSpecificPanelContent',
value: html,
})
} else {

View file

@ -38,7 +38,9 @@ export default (store) => {
if (store.state.users.currentUser) {
next()
} else {
next(useInstanceStore().instanceIdentity.redirectRootNoLogin || '/main/all')
next(
useInstanceStore().instanceIdentity.redirectRootNoLogin || '/main/all',
)
}
}
@ -50,7 +52,8 @@ export default (store) => {
return (
(store.state.users.currentUser
? useInstanceStore().instanceIdentity.redirectRootLogin
: useInstanceStore().instanceIdentity.redirectRootNoLogin) || '/main/all'
: useInstanceStore().instanceIdentity.redirectRootNoLogin) ||
'/main/all'
)
},
},