summaryrefslogtreecommitdiff
path: root/web/source/settings/lib/api/admin.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/source/settings/lib/api/admin.js')
-rw-r--r--web/source/settings/lib/api/admin.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/web/source/settings/lib/api/admin.js b/web/source/settings/lib/api/admin.js
index 56513b900..5f4fa1d1f 100644
--- a/web/source/settings/lib/api/admin.js
+++ b/web/source/settings/lib/api/admin.js
@@ -160,33 +160,6 @@ module.exports = function ({ apiCall, getChanges }) {
});
};
},
-
- fetchCustomEmoji: function fetchCustomEmoji() {
- return function (dispatch, _getState) {
- return Promise.try(() => {
- return dispatch(apiCall("GET", "/api/v1/admin/custom_emojis?filter=domain:local&limit=0"));
- }).then((emoji) => {
- return dispatch(admin.setEmoji(emoji));
- });
- };
- },
-
- newEmoji: function newEmoji() {
- return function (dispatch, getState) {
- return Promise.try(() => {
- const state = getState().admin.newEmoji;
-
- const update = getChanges(state, {
- formKeys: ["shortcode"],
- fileKeys: ["image"]
- });
-
- return dispatch(apiCall("POST", "/api/v1/admin/custom_emojis", update, "form"));
- }).then((emoji) => {
- return dispatch(admin.addEmoji(emoji));
- });
- };
- }
};
return adminAPI;
}; \ No newline at end of file