aboutsummaryrefslogtreecommitdiff
path: root/src/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.js b/src/main.js
index d1f99fa5..b994e154 100644
--- a/src/main.js
+++ b/src/main.js
@@ -102,3 +102,12 @@ window.fetch('/static/terms-of-service.html')
.then((html) => {
store.dispatch('setOption', { name: 'tos', value: html })
})
+
+window.fetch('/api/pleroma/emoji.json')
+ .then((res) => res.json())
+ .then((values) => {
+ const emoji = Object.keys(values).map((key) => {
+ return { shortcode: key, image_url: values[key] }
+ })
+ store.dispatch('setOption', { name: 'emoji', value: emoji })
+ })