emoji
This commit is contained in:
parent
f965d874ee
commit
26b6f78f0b
1 changed files with 4 additions and 1 deletions
|
|
@ -341,7 +341,10 @@ const instance = {
|
||||||
|
|
||||||
async getCustomEmoji ({ commit, state }) {
|
async getCustomEmoji ({ commit, state }) {
|
||||||
try {
|
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) {
|
if (res.ok) {
|
||||||
const result = await res.json()
|
const result = await res.json()
|
||||||
const values = Array.isArray(result) ? Object.assign({}, ...result) : result
|
const values = Array.isArray(result) ? Object.assign({}, ...result) : result
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue