[frontend] Use new GET custom_emoji admin api (#908)

* use new GET custom_emoji admin api

* use url instead of static_url, add link to emoji admin api tracking issue

* fetch all local emoji
This commit is contained in:
f0x52
2022-10-13 10:42:54 +02:00
committed by GitHub
parent 30aaedb0a8
commit 3ca7164455
5 changed files with 77 additions and 30 deletions

View File

@ -164,7 +164,7 @@ module.exports = function ({ apiCall, getChanges }) {
fetchCustomEmoji: function fetchCustomEmoji() {
return function (dispatch, _getState) {
return Promise.try(() => {
return dispatch(apiCall("GET", "/api/v1/custom_emojis"));
return dispatch(apiCall("GET", "/api/v1/admin/custom_emojis?filter=domain:local&limit=0"));
}).then((emoji) => {
return dispatch(admin.setEmoji(emoji));
});