|
|
|
@ -79,11 +79,12 @@ const i18n = new VueI18n({
|
|
|
|
|
window.fetch('/api/statusnet/config.json')
|
|
|
|
|
.then((res) => res.json())
|
|
|
|
|
.then((data) => {
|
|
|
|
|
const {name, closed: registrationClosed, textlimit} = data.site
|
|
|
|
|
const {name, closed: registrationClosed, textlimit, server} = data.site
|
|
|
|
|
|
|
|
|
|
store.dispatch('setOption', { name: 'name', value: name })
|
|
|
|
|
store.dispatch('setOption', { name: 'registrationOpen', value: (registrationClosed === '0') })
|
|
|
|
|
store.dispatch('setOption', { name: 'textlimit', value: parseInt(textlimit) })
|
|
|
|
|
store.dispatch('setOption', { name: 'server', value: server })
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
window.fetch('/static/config.json')
|
|
|
|
|