Selaa lähdekoodia

fix: replace robohash avatars with adorable io

master
yanas 8 vuotta sitten
vanhempi
commit
b24a54aab2
1 muutettua tiedostoa jossa 25 lisäystä ja 2 poistoa
  1. 25
    2
      modules/UI/avatar/Avatar.js

+ 25
- 2
modules/UI/avatar/Avatar.js Näytä tiedosto

@@ -1,3 +1,26 @@
1
+/*
2
+ * Adorable Avatars service used at the end of this file is released under the
3
+ * terms of the MIT License.
4
+ *
5
+ * Copyright (c) 2014 Adorable IO LLC
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ * The above copyright notice and this permission notice shall be included in
13
+ * all copies or substantial portions of the Software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ * SOFTWARE.
22
+ */
23
+
1 24
 /* global MD5, config, interfaceConfig, APP */
2 25
 
3 26
 let users = {};
@@ -105,8 +128,8 @@ export default {
105 128
             urlSuf = interfaceConfig.RANDOM_AVATAR_URL_SUFFIX;
106 129
         }
107 130
         else {
108
-            urlPref = 'https://robohash.org/';
109
-            urlSuf = ".png?size=200x200";
131
+            urlPref = 'https://api.adorable.io/avatars/200/';
132
+            urlSuf = ".png";
110 133
         }
111 134
 
112 135
         return urlPref + avatarId + urlSuf;

Loading…
Peruuta
Tallenna