diff options
| author | Hakaba Hitoyo <example@example.com> | 2018-02-04 08:36:10 +0900 |
|---|---|---|
| committer | Hakaba Hitoyo <example@example.com> | 2018-02-04 08:36:10 +0900 |
| commit | 013f11497fbc955bea6c182d64b512de2ee3bcdf (patch) | |
| tree | 6979bab5ddc02f68992cf8e71b4612e3f2b02d12 /src/main.js | |
| parent | 95cba854f389ebdee200d0df147e4c26ed4949a0 (diff) | |
| parent | d97e6777ba849c9802da1e566d2baa2e1d7bdf70 (diff) | |
slove-conflict
Diffstat (limited to 'src/main.js')
| -rw-r--r-- | src/main.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main.js b/src/main.js index 359dbf52..a6f7e69f 100644 --- a/src/main.js +++ b/src/main.js @@ -138,7 +138,7 @@ window.fetch('/api/pleroma/emoji.json') const emoji = Object.keys(values).map((key) => { return { shortcode: key, image_url: values[key] } }) - store.dispatch('setOption', { name: 'emoji', value: emoji }) + store.dispatch('setOption', { name: 'customEmoji', value: emoji }) store.dispatch('setOption', { name: 'pleromaBackend', value: true }) }, (failure) => { @@ -148,9 +148,19 @@ window.fetch('/api/pleroma/emoji.json') (error) => console.log(error) ) +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 }) + }) + window.fetch('/instance/panel.html') .then((res) => res.text()) .then((html) => { store.dispatch('setOption', { name: 'instanceSpecificPanelContent', value: html }) }) + |
