Add completion for normal emoji.

This commit is contained in:
eal 2017-11-20 20:32:51 +02:00
parent 8020363680
commit 581e3e836a
4 changed files with 19 additions and 4 deletions

View file

@ -125,5 +125,14 @@ window.fetch('/api/pleroma/emoji.json')
const emoji = Object.keys(values).map((key) => {
return { shortcode: key, image_url: values[key] }
})
store.dispatch('setOption', { name: 'customEmoji', value: emoji })
})
window.fetch('/static/emoji.json')
.then((res) => res.json())
.then((values) => {
const emoji = Object.keys(values).map((key) => {
return { shortcode: key, image_url: false, 'utf': values[key] }
})
store.dispatch('setOption', { name: 'emoji', value: emoji })
})