Fixes broken custom emoji in autocomplete when proxying to remote BE

This commit is contained in:
Henry Jameson 2018-08-06 09:45:22 +03:00
parent 32fd108e97
commit 976444064f
2 changed files with 3 additions and 2 deletions

View file

@ -91,7 +91,7 @@ const PostStatusForm = {
screen_name: `:${shortcode}:`,
name: '',
utf: utf || '',
img: image_url,
img: utf ? '' : this.$store.state.config.server + image_url,
highlighted: index === this.highlighted
}))
} else {

View file

@ -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')