diff --git a/src/modules/instance.js b/src/modules/instance.js index 033096edd..98917e791 100644 --- a/src/modules/instance.js +++ b/src/modules/instance.js @@ -341,7 +341,10 @@ const instance = { async getCustomEmoji ({ commit, state }) { try { - const res = await window.fetch('/api/pleroma/emoji.json') + let res = await window.fetch('/api/v1/pleroma/emoji') + if (!res.ok) { + res = await window.fetch('/api/pleroma/emoji.json') + } if (res.ok) { const result = await res.json() const values = Array.isArray(result) ? Object.assign({}, ...result) : result