summaryrefslogtreecommitdiffstats
path: root/webapp/stores
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2017-01-31 23:29:21 +0900
committerHarrison Healey <harrisonmhealey@gmail.com>2017-01-31 09:29:21 -0500
commit7e9cf13aa356f991f48ba0a943bdab9b4d3c9233 (patch)
tree11e64fd6b7755ce85e7d2ebcc8adeb8b3f8f331d /webapp/stores
parent67739cb516309e06a7cb08cc5807140ac9af9b13 (diff)
downloadchat-7e9cf13aa356f991f48ba0a943bdab9b4d3c9233.tar.gz
chat-7e9cf13aa356f991f48ba0a943bdab9b4d3c9233.tar.bz2
chat-7e9cf13aa356f991f48ba0a943bdab9b4d3c9233.zip
Use Client APIs to resolve URLs (#5148)
Diffstat (limited to 'webapp/stores')
-rw-r--r--webapp/stores/emoji_store.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/stores/emoji_store.jsx b/webapp/stores/emoji_store.jsx
index a178ff6ae..212583ea8 100644
--- a/webapp/stores/emoji_store.jsx
+++ b/webapp/stores/emoji_store.jsx
@@ -1,6 +1,7 @@
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
+import Client from '../client/web_client.jsx';
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
import Constants from 'utils/constants.jsx';
import EventEmitter from 'events';
@@ -148,8 +149,7 @@ class EmojiStore extends EventEmitter {
getEmojiImageUrl(emoji) {
if (emoji.id) {
- // must match Client.getCustomEmojiImageUrl
- return `/api/v3/emoji/${emoji.id}`;
+ return Client.getCustomEmojiImageUrl(emoji.id);
}
const filename = emoji.filename || emoji.aliases[0];